logo

searx

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

[enh] configurable listening http protocol version

Diffstat:

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

diff --git a/searx/settings.yml b/searx/settings.yml @@ -13,6 +13,7 @@ server: secret_key : "ultrasecretkey" # change this! base_url : False # Set custom base_url. Possible values: False or "https://your.custom.host/location/" image_proxy : False # Proxying image results through searx + http_protocol_version : "1.0" # 1.0 and 1.1 are supported ui: themes_path : "" # Custom ui themes path - leave it blank if you didn't change 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/1.1" +WSGIRequestHandler.protocol_version = "HTTP/{}".format(settings['server']['http_protocol_version']) static_path, templates_path, themes =\ get_themes(settings['ui']['themes_path']