mirror of https://github.com/hunshcn/gh-proxy
				
				
				
			fix clone problem of large volume project
							parent
							
								
									a325435eb1
								
							
						
					
					
						commit
						6e67093206
					
				| 
						 | 
				
			
			@ -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')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue