[fix] robot tests ++ set default value for server http protocol version
commit14f58bdaecb288ac65782b2025e765c514b1844e
authorAdam Tauber <asciimoo@gmail.com>
dateSun 25 Dec 2016, 23:31 (10 years ago)
parenta98bbef
searx/settings_robot.yml+1
@@ -13,6 +13,7 @@ server:
1313 secret_key : "ultrasecretkey" # change this!
1414 base_url : False
1515 image_proxy : False
16+ http_protocol_version : "1.0"
1617
1718ui:
1819 themes_path : ""
searx/webapp.py+1−1
@@ -81,7 +81,7 @@ except ImportError:
8181
8282# serve pages with HTTP/1.1
8383from werkzeug.serving import WSGIRequestHandler
84−WSGIRequestHandler.protocol_version = "HTTP/{}".format(settings['server']['http_protocol_version'])
84+WSGIRequestHandler.protocol_version = "HTTP/{}".format(settings['server'].get('http_protocol_version', '1.0'))
8585
8686static_path, templates_path, themes =\
8787 get_themes(settings['ui']['themes_path']