mirror of
https://github.com/searxng/searxng.git
synced 2024-12-03 16:06:28 +00:00
Merge pull request #697 from Eig8phei/http1.1
serve pages with HTTP/1.1
This commit is contained in:
commit
574d9d40d2
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,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']
|
||||||
|
|
Loading…
Reference in a new issue