From 9e4028c5806d28333f250c8db17c8dbd061b1410 Mon Sep 17 00:00:00 2001 From: hunshnet <337490703@qq.com> Date: Wed, 4 Nov 2020 13:50:51 +0800 Subject: [PATCH] fix issue #21 --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 7057345..24b6e0b 100644 --- a/app/main.py +++ b/app/main.py @@ -56,7 +56,7 @@ def proxy(u): if url.startswith('https:/') and not url.startswith('https://'): url = 'https://' + url[7:] r = requests.request(method=request.method, url=url, data=request.data, headers=r_headers, stream=True) - for i in ['Content-Type']: + for i in ['Content-Range', 'Content-Type']: if i in r.headers: headers[i] = r.headers.get(i) if r.status_code == 200: