fix clone problem of large volume project

pull/30/head
hunshnet 2020-12-21 20:06:24 +08:00
parent a325435eb1
commit 6e67093206
1 changed files with 1 additions and 1 deletions

View File

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