forked from Ponysearch/Ponysearch
[fix] robot tests ++ set default value for server http protocol version
This commit is contained in:
parent
a98bbefbcf
commit
14f58bdaec
2 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ server:
|
||||||
secret_key : "ultrasecretkey" # change this!
|
secret_key : "ultrasecretkey" # change this!
|
||||||
base_url : False
|
base_url : False
|
||||||
image_proxy : False
|
image_proxy : False
|
||||||
|
http_protocol_version : "1.0"
|
||||||
|
|
||||||
ui:
|
ui:
|
||||||
themes_path : ""
|
themes_path : ""
|
||||||
|
|
|
@ -81,7 +81,7 @@ except ImportError:
|
||||||
|
|
||||||
# serve pages with HTTP/1.1
|
# serve pages with HTTP/1.1
|
||||||
from werkzeug.serving import WSGIRequestHandler
|
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 =\
|
static_path, templates_path, themes =\
|
||||||
get_themes(settings['ui']['themes_path']
|
get_themes(settings['ui']['themes_path']
|
||||||
|
|
Loading…
Reference in a new issue