diff options
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-x | searx/webapp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 86de88407..fa5ca0605 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1163,7 +1163,9 @@ def image_proxy(): return '', resp.status_code return '', 400 - if not resp.headers.get('Content-Type', '').startswith('image/'): + if not resp.headers.get('Content-Type', '').startswith('image/') and not resp.headers.get( + 'Content-Type', '' + ).startswith('binary/octet-stream'): logger.debug('image-proxy: wrong content-type: %s', resp.headers.get('Content-Type', '')) return '', 400 |