summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorEig8phei <a.titeica@navx.com>2016-09-15 14:47:09 +0300
committerGitHub <noreply@github.com>2016-09-15 14:47:09 +0300
commitf90eb428c679d3852d9738f6279d045283340562 (patch)
tree7d7e4f1d07786ff71e89716ecb3ce4151f638c30 /searx/webapp.py
parent8f48c518aa049a37e6e7721cb17ceef92c519ca8 (diff)
downloadsearxng-f90eb428c679d3852d9738f6279d045283340562.tar.gz
searxng-f90eb428c679d3852d9738f6279d045283340562.zip
serve pages with HTTP/1.1
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 262bf9bdf..b69003297 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -77,6 +77,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']