summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-10-29 17:46:57 +0200
committerGitHub <noreply@github.com>2016-10-29 17:46:57 +0200
commit574d9d40d25734477b90ea482377e276ced1ec1e (patch)
tree183dc2070daf6fb90ee6c3c6cbaf9042aae9d564 /searx
parent3e7554422b7d177e12838882ed0b84878278825e (diff)
parenta88768efd8ee6b832febda8508cb1ba3c8778b94 (diff)
downloadsearxng-574d9d40d25734477b90ea482377e276ced1ec1e.tar.gz
searxng-574d9d40d25734477b90ea482377e276ced1ec1e.zip
Merge pull request #697 from Eig8phei/http1.1
serve pages with HTTP/1.1
Diffstat (limited to 'searx')
-rw-r--r--searx/webapp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 6a1bb4efb..860208cd2 100644
--- 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']