mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[format.python] initial formatting of the python code
This patch was generated by black [1]::
make format.python
[1] https://github.com/psf/black
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
@@ -29,6 +29,7 @@ class ReverseProxyPathFix:
|
||||
|
||||
:param wsgi_app: the WSGI application
|
||||
'''
|
||||
|
||||
# pylint: disable=too-few-public-methods
|
||||
|
||||
def __init__(self, wsgi_app):
|
||||
@@ -58,7 +59,7 @@ class ReverseProxyPathFix:
|
||||
environ['SCRIPT_NAME'] = script_name
|
||||
path_info = environ['PATH_INFO']
|
||||
if path_info.startswith(script_name):
|
||||
environ['PATH_INFO'] = path_info[len(script_name):]
|
||||
environ['PATH_INFO'] = path_info[len(script_name) :]
|
||||
|
||||
scheme = self.scheme or environ.get('HTTP_X_SCHEME', '')
|
||||
if scheme:
|
||||
|
||||
Reference in New Issue
Block a user