summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2022-06-02 14:59:24 +0200
committerGitHub <noreply@github.com>2022-06-02 14:59:24 +0200
commit96dc4369d535dc20178a3e7df793c8f2427d2c79 (patch)
treec01b779c07c821828f07176a3d83d0c8ce803a6c /searx/webapp.py
parente568da2314089a71666dfbccc8c6051c7fb7db78 (diff)
parent7e95d6bb79ccf36f33ac3e287022f396721d472a (diff)
Merge pull request #1259 from allendema/petal-images
[enh] Add Petalsearch Images engine
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py4
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