소스 검색

Merge pull request #697 from Eig8phei/http1.1

serve pages with HTTP/1.1
Adam Tauber 8 년 전
부모
커밋
574d9d40d2
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3
    0
      searx/webapp.py

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

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