.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.flaskfix Namespace Reference

Classes

class  ReverseProxyPathFix

Functions

 patch_application (app)

Function Documentation

◆ patch_application()

searx.flaskfix.patch_application ( app)

Definition at line 72 of file flaskfix.py.

72def patch_application(app):
73 # serve pages with HTTP/1.1
74 WSGIRequestHandler.protocol_version = "HTTP/{}".format(settings['server']['http_protocol_version'])
75 # patch app to handle non root url-s behind proxy
76 app.wsgi_app = ReverseProxyPathFix(app.wsgi_app)