From 6b6f20a032eb31d747366c8bc270ca81731eaf6a Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Fri, 4 Sep 2026 17:09:24 +0200 Subject: Fixed pre-commit issues --- proxy/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'proxy/utils.py') diff --git a/proxy/utils.py b/proxy/utils.py index 2b80f43..3fff388 100644 --- a/proxy/utils.py +++ b/proxy/utils.py @@ -3,5 +3,9 @@ from starlette.requests import HTTPConnection def get_path_with_query_string(connection: HTTPConnection) -> str: path = connection.url.path - query_string = '?' + connection.scope['query_string'].decode() if connection.scope['query_string'] else '' + query_string = ( + "?" + connection.scope["query_string"].decode() + if connection.scope["query_string"] + else "" + ) return f"{path}{query_string}" -- cgit v1.3