Skip to content

Commit

Permalink
Ensure compatibility for /wxcomapp URL with trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
6vision committed Jul 18, 2024
1 parent a3abfb9 commit 2949074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channel/wechatcom/wechatcomapp_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self):

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))
Expand Down

0 comments on commit 2949074

Please sign in to comment.