serve pages with HTTP/1.1

This commit is contained in:
Eig8phei 2016-09-15 14:47:09 +03:00 committed by GitHub
parent 8f48c518aa
commit f90eb428c6

View file

@ -77,6 +77,9 @@ except ImportError:
logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n" logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
"Some HTTPS connections will fail") "Some HTTPS connections will fail")
# serve pages with HTTP/1.1
from werkzeug.serving import WSGIRequestHandler
WSGIRequestHandler.protocol_version = "HTTP/1.1"
static_path, templates_path, themes =\ static_path, templates_path, themes =\
get_themes(settings['ui']['themes_path'] get_themes(settings['ui']['themes_path']