|
@@ -1132,7 +1132,7 @@ def image_proxy():
|
|
'DNT': '1',
|
|
'DNT': '1',
|
|
}
|
|
}
|
|
set_context_network_name('image_proxy')
|
|
set_context_network_name('image_proxy')
|
|
- resp, stream = http_stream(method='GET', url=url, headers=request_headers)
|
|
|
|
|
|
+ resp, stream = http_stream(method='GET', url=url, headers=request_headers, allow_redirects=True)
|
|
content_length = resp.headers.get('Content-Length')
|
|
content_length = resp.headers.get('Content-Length')
|
|
if content_length and content_length.isdigit() and int(content_length) > maximum_size:
|
|
if content_length and content_length.isdigit() and int(content_length) > maximum_size:
|
|
return 'Max size', 400
|
|
return 'Max size', 400
|