소스 검색

serve pages with HTTP/1.1

Eig8phei 8 년 전
부모
커밋
f90eb428c6
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3
    0
      searx/webapp.py

+ 3
- 0
searx/webapp.py 파일 보기

@@ -77,6 +77,9 @@ except ImportError:
77 77
     logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
78 78
                     "Some HTTPS connections will fail")
79 79
 
80
+# serve pages with HTTP/1.1
81
+from werkzeug.serving import WSGIRequestHandler
82
+WSGIRequestHandler.protocol_version = "HTTP/1.1"
80 83
 
81 84
 static_path, templates_path, themes =\
82 85
     get_themes(settings['ui']['themes_path']