on master help sign in
serve pages with HTTP/1.1
f90eb42Eig8phei
searx/webapp.py+3
@@ -77,6 +77,9 @@ except ImportError:
77 logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
77 logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
78 "Some HTTPS connections will fail")
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
81static_path, templates_path, themes =\
84static_path, templates_path, themes =\
82 get_themes(settings['ui']['themes_path']
85 get_themes(settings['ui']['themes_path']