Browse Source

serve pages with HTTP/1.1

Eig8phei 8 years ago
parent
commit
f90eb428c6
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      searx/webapp.py

+ 3
- 0
searx/webapp.py View File

77
     logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
77
     logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
78
                     "Some HTTPS connections will fail")
78
                     "Some HTTPS connections will fail")
79
 
79
 
80
+# serve pages with HTTP/1.1
81
+from werkzeug.serving import WSGIRequestHandler
82
+WSGIRequestHandler.protocol_version = "HTTP/1.1"
80
 
83
 
81
 static_path, templates_path, themes =\
84
 static_path, templates_path, themes =\
82
     get_themes(settings['ui']['themes_path']
85
     get_themes(settings['ui']['themes_path']