From 840b9435b22dcf610a342ef32c4856d222f3a499 Mon Sep 17 00:00:00 2001 From: Evil0ctal Date: Fri, 20 May 2022 15:49:37 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=E7=A6=81=E7=94=A8PyWebIO?= =?UTF-8?q?=E7=9A=84CDN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_zh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_zh.py b/web_zh.py index 33b4c55..adab92e 100644 --- a/web_zh.py +++ b/web_zh.py @@ -477,7 +477,7 @@ if __name__ == "__main__": date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) with open('logs.txt', 'a') as f: f.write("时间: " + date + " " + "程序重载完毕!" + '\n') - app.add_url_rule('/', 'webio_view', webio_view(main), methods=['GET', 'POST', 'OPTIONS']) + app.add_url_rule('/', 'webio_view', webio_view(main, cdn=False), methods=['GET', 'POST', 'OPTIONS']) # 获取空闲端口 if os.environ.get('PORT'): port = int(os.environ.get('PORT'))