pull/30/head
hunsh 2021-03-27 21:24:36 +08:00
parent 0dfd4fffc7
commit 737e892b75
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ def proxy(u):
u = u.replace('/blob/', '/raw/', 1)
headers = {}
r_headers = {}
for i in ['Range', 'User-Agent', 'Accept', 'Content-Type', 'Content-Length', 'Content-Encoding']:
for i in ['Range', 'User-Agent', 'Accept', 'Content-Type', 'Content-Encoding']:
if i in request.headers:
r_headers[i] = request.headers.get(i)
r_headers['Accept-Encoding'] = request.headers.get('Accept-Encoding', 'identity')