소스 검색

[fix] debug message parameter

Adam Tauber 9 년 전
부모
커밋
ff322d3373
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      searx/webapp.py

+ 1
- 1
searx/webapp.py 파일 보기

@@ -697,7 +697,7 @@ def image_proxy():
697 697
         return '', 400
698 698
 
699 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 701
         return '', 400
702 702
 
703 703
     img = ''