on master help sign in
Merge pull request #697 from Eig8phei/http1.1

serve pages with HTTP/1.1

commit574d9d40d25734477b90ea482377e276ced1ec1e authorAdam Tauber <asciimoo@gmail.com> dateSat 29 Oct 2016, 17:46 (10 years ago) parent3e75544a88768e
1 file changed+3
searx/webapp.py+3
searx/webapp.py+3
@@ -78,6 +78,9 @@ except ImportError:
7878 logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
7979 "Some HTTPS connections will fail")
8080
81+# serve pages with HTTP/1.1
82+from werkzeug.serving import WSGIRequestHandler
83+WSGIRequestHandler.protocol_version = "HTTP/1.1"
8184
8285static_path, templates_path, themes =\
8386 get_themes(settings['ui']['themes_path']