diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2022-02-20 18:29:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-20 18:29:50 +0100 |
| commit | 36aee70c247fe347c69abb17ec3bdc31781204c6 (patch) | |
| tree | ee67e8017c0b1c71af03981d1a78610df9864bbe /searx/webapp.py | |
| parent | 883e9c1ddd1cf2af0dc6e9b82885219150b9e849 (diff) | |
| parent | c2d9c93b3baf365c42a8ba93d965d404dfb5741d (diff) | |
Merge pull request #910 from tiekoetter/fix-909
[fix] google images engine: Fix 'scrap_img_by_id' function
Diffstat (limited to 'searx/webapp.py')
| -rwxr-xr-x | searx/webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 5e05f9781..eb08d63d9 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1132,7 +1132,7 @@ def image_proxy(): 'DNT': '1', } 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') if content_length and content_length.isdigit() and int(content_length) > maximum_size: return 'Max size', 400 |