diff options
Diffstat (limited to 'searx/flaskfix.py')
| -rw-r--r-- | searx/flaskfix.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/flaskfix.py b/searx/flaskfix.py index f2a54bdfc..4282824a3 100644 --- a/searx/flaskfix.py +++ b/searx/flaskfix.py @@ -3,7 +3,6 @@ from urllib.parse import urlparse -from werkzeug.middleware.proxy_fix import ProxyFix from werkzeug.serving import WSGIRequestHandler from searx import settings @@ -73,5 +72,5 @@ class ReverseProxyPathFix: def patch_application(app): # serve pages with HTTP/1.1 WSGIRequestHandler.protocol_version = "HTTP/{}".format(settings['server']['http_protocol_version']) - # patch app to handle non root url-s behind proxy & wsgi - app.wsgi_app = ReverseProxyPathFix(ProxyFix(app.wsgi_app)) + # patch app to handle non root url-s behind proxy + app.wsgi_app = ReverseProxyPathFix(app.wsgi_app) |