Преглед на файлове

[fix] debug message parameter

Adam Tauber преди 10 години
родител
ревизия
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 = ''