瀏覽代碼

Ensure compatibility for /wxcomapp URL with trailing slash

master
6vision 3 月之前
父節點
當前提交
29490741fd
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      channel/wechatcom/wechatcomapp_channel.py

+ 1
- 1
channel/wechatcom/wechatcomapp_channel.py 查看文件

@@ -44,7 +44,7 @@ class WechatComAppChannel(ChatChannel):

def startup(self):
# start message listener
urls = ("/wxcomapp", "channel.wechatcom.wechatcomapp_channel.Query")
urls = ("/wxcomapp/?", "channel.wechatcom.wechatcomapp_channel.Query")
app = web.application(urls, globals(), autoreload=False)
port = conf().get("wechatcomapp_port", 9898)
web.httpserver.runsimple(app.wsgifunc(), ("0.0.0.0", port))


Loading…
取消
儲存