commit: 574d9d40d25734477b90ea482377e276ced1ec1e
parent: 3e7554422b7d177e12838882ed0b84878278825e
Author: Adam Tauber <asciimoo@gmail.com>
Date: Sat, 29 Oct 2016 17:46:57 +0200
Merge pull request #697 from Eig8phei/http1.1
serve pages with HTTP/1.1
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/searx/webapp.py b/searx/webapp.py
@@ -78,6 +78,9 @@ except ImportError:
logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
"Some HTTPS connections will fail")
+# serve pages with HTTP/1.1
+from werkzeug.serving import WSGIRequestHandler
+WSGIRequestHandler.protocol_version = "HTTP/1.1"
static_path, templates_path, themes =\
get_themes(settings['ui']['themes_path']