mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
Ensure compatibility for /wxcomapp URL with trailing slash
This commit is contained in:
@@ -44,7 +44,7 @@ class WechatComAppChannel(ChatChannel):
|
|||||||
|
|
||||||
def startup(self):
|
def startup(self):
|
||||||
# start message listener
|
# start message listener
|
||||||
urls = ("/wxcomapp", "channel.wechatcom.wechatcomapp_channel.Query")
|
urls = ("/wxcomapp/?", "channel.wechatcom.wechatcomapp_channel.Query")
|
||||||
app = web.application(urls, globals(), autoreload=False)
|
app = web.application(urls, globals(), autoreload=False)
|
||||||
port = conf().get("wechatcomapp_port", 9898)
|
port = conf().get("wechatcomapp_port", 9898)
|
||||||
web.httpserver.runsimple(app.wsgifunc(), ("0.0.0.0", port))
|
web.httpserver.runsimple(app.wsgifunc(), ("0.0.0.0", port))
|
||||||
|
|||||||
Reference in New Issue
Block a user