mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 07:49:22 +02: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:
parent
fcdc2c2cd2
commit
3d96a9839a
184 changed files with 2800 additions and 2836 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue