summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-12-25 23:31:51 +0100
committerAdam Tauber <asciimoo@gmail.com>2016-12-25 23:31:51 +0100
commit14f58bdaecb288ac65782b2025e765c514b1844e (patch)
treee3cd29c6d4fa5a1594e5c758a80f83d292988189 /searx/webapp.py
parenta98bbefbcf89ad8d5959c0ddd1c02ab65b92913d (diff)
downloadsearxng-14f58bdaecb288ac65782b2025e765c514b1844e.tar.gz
searxng-14f58bdaecb288ac65782b2025e765c514b1844e.zip
[fix] robot tests ++ set default value for server http protocol version
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index f8253ec00..8f02a034e 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -81,7 +81,7 @@ except ImportError:
# serve pages with HTTP/1.1
from werkzeug.serving import WSGIRequestHandler
-WSGIRequestHandler.protocol_version = "HTTP/{}".format(settings['server']['http_protocol_version'])
+WSGIRequestHandler.protocol_version = "HTTP/{}".format(settings['server'].get('http_protocol_version', '1.0'))
static_path, templates_path, themes =\
get_themes(settings['ui']['themes_path']