From 29490741fde9e719ae11920a5d6fffcae5623253 Mon Sep 17 00:00:00 2001 From: 6vision Date: Thu, 18 Jul 2024 23:21:45 +0800 Subject: [PATCH] Ensure compatibility for /wxcomapp URL with trailing slash --- channel/wechatcom/wechatcomapp_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel/wechatcom/wechatcomapp_channel.py b/channel/wechatcom/wechatcomapp_channel.py index 1a08596..e403850 100644 --- a/channel/wechatcom/wechatcomapp_channel.py +++ b/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))