[fix] debug message parameter
commitff322d3373c6de934a5a47c12effce2d336d2c6d
authorAdam Tauber <asciimoo@gmail.com>
dateSun 21 Jun 2015, 16:50 (11 years ago)
parent2eb756c
searx/webapp.py+1−1
@@ -697,7 +697,7 @@ def image_proxy():
697697 return '', 400
698698
699699 if not resp.headers.get('content-type', '').startswith('image/'):
700− logger.debug('image-proxy: wrong content-type: {0}'.format(resp.get('content-type')))
700+ logger.debug('image-proxy: wrong content-type: {0}'.format(resp.headers.get('content-type')))
701701 return '', 400
702702
703703 img = ''