瀏覽代碼

serve pages with HTTP/1.1

Eig8phei 9 年之前
父節點
當前提交
f90eb428c6
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      searx/webapp.py

+ 3
- 0
searx/webapp.py 查看文件

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']