[enh] configurable listening http protocol version

dependabot/pip/master/sphinx-6.1.3
Adam Tauber 8 years ago
parent 383160e99a
commit a98bbefbcf

@ -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

@ -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']

Loading…
Cancel
Save