瀏覽代碼

[fix] debug message parameter

Adam Tauber 9 年之前
父節點
當前提交
ff322d3373
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      searx/webapp.py

+ 1
- 1
searx/webapp.py 查看文件

697
         return '', 400
697
         return '', 400
698
 
698
 
699
     if not resp.headers.get('content-type', '').startswith('image/'):
699
     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')))
701
         return '', 400
701
         return '', 400
702
 
702
 
703
     img = ''
703
     img = ''