From f90eb428c679d3852d9738f6279d045283340562 Mon Sep 17 00:00:00 2001 From: Eig8phei Date: Thu, 15 Sep 2016 14:47:09 +0300 Subject: [PATCH] serve pages with HTTP/1.1 --- searx/webapp.py | 3 +++ 1 file changed, 3 insertions(+) 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']