Eig8phei пре 8 година
родитељ
комит
f90eb428c6
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3
    0
      searx/webapp.py

+ 3
- 0
searx/webapp.py Прегледај датотеку

@@ -77,6 +77,9 @@ except ImportError:
77 77
     logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
78 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 84
 static_path, templates_path, themes =\
82 85
     get_themes(settings['ui']['themes_path']