mirror of https://github.com/hunshcn/gh-proxy
fix: 400
parent
0dfd4fffc7
commit
737e892b75
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue