From 416a54a7620801c6e58c79db13382cdf0b7c4d9c Mon Sep 17 00:00:00 2001 From: hunsh Date: Sat, 27 Mar 2021 23:18:25 +0800 Subject: [PATCH] fix: 403 --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 4ea38cf3..aeb5a917 100644 --- a/app/main.py +++ b/app/main.py @@ -88,7 +88,7 @@ def generate(): @app.route('/', methods=['GET', 'POST']) def proxy(u): u = u if u.startswith('http') else 'https://' + u - u = u.replace(':/g', '://g', 1) # uwsgi会将//传递为/ + u = u.replace('s:/', 's://', 1) # uwsgi会将//传递为/ if not any([i.match(u) for i in [exp1, exp2, exp3, exp4, exp5]]): return Response('Invalid input.', status=403) if jsdelivr and exp2.match(u):