logo

searx

My custom branche(s) on searx, a meta-search engine
commit: 14f58bdaecb288ac65782b2025e765c514b1844e
parent: a98bbefbcf89ad8d5959c0ddd1c02ab65b92913d
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Sun, 25 Dec 2016 23:31:51 +0100

[fix] robot tests ++ set default value for server http protocol version

Diffstat:

Msearx/settings_robot.yml1+
Msearx/webapp.py2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/searx/settings_robot.yml b/searx/settings_robot.yml @@ -13,6 +13,7 @@ server: secret_key : "ultrasecretkey" # change this! base_url : False image_proxy : False + http_protocol_version : "1.0" ui: themes_path : "" diff --git 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']