mirror of
https://github.com/searxng/searxng.git
synced 2024-11-17 18:00:12 +01:00
[mod] image proxy: allow binary/octet-stream mime type
The Petal Search Images engine sends the thumbnails with the binary/octet-stream mime type.
This commit is contained in:
parent
43dc9eb7d6
commit
7e95d6bb79
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user