on master help sign in
[enh] configurable listening http protocol version
commita98bbefbcf89ad8d5959c0ddd1c02ab65b92913d authorAdam Tauber <asciimoo@gmail.com> dateSun 25 Dec 2016, 23:02 (10 years ago) parent383160e
2 files changed+2−1
searx/settings.yml+1 searx/webapp.py+1−1
searx/settings.yml+1
@@ -13,6 +13,7 @@ server:
1313 secret_key : "ultrasecretkey" # change this!
1414 base_url : False # Set custom base_url. Possible values: False or "https://your.custom.host/location/"
1515 image_proxy : False # Proxying image results through searx
16+ http_protocol_version : "1.0" # 1.0 and 1.1 are supported
1617
1718ui:
1819 themes_path : "" # Custom ui themes path - leave it blank if you didn't change
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/1.1"
84+WSGIRequestHandler.protocol_version = "HTTP/{}".format(settings['server']['http_protocol_version'])
8585
8686static_path, templates_path, themes =\
8787 get_themes(settings['ui']['themes_path']