aboutsummaryrefslogtreecommitdiffstats
path: root/proxy/utils.py
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.io>2026-09-04 17:09:24 +0200
committerGravatar Tom van der Lee <tom@vanderlee.io>2026-09-04 17:09:24 +0200
commit6b6f20a032eb31d747366c8bc270ca81731eaf6a (patch)
treeada48080495267bebde4ee1251bbbe77d629745f /proxy/utils.py
parent2d22158dd95f76399f5716d556be60c77da04a46 (diff)
downloadserver-6b6f20a032eb31d747366c8bc270ca81731eaf6a.tar.gz
server-6b6f20a032eb31d747366c8bc270ca81731eaf6a.tar.bz2
server-6b6f20a032eb31d747366c8bc270ca81731eaf6a.zip
Fixed pre-commit issuesv3
Diffstat (limited to 'proxy/utils.py')
-rw-r--r--proxy/utils.py6
1 files changed, 5 insertions, 1 deletions
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
3 3
4def get_path_with_query_string(connection: HTTPConnection) -> str: 4def get_path_with_query_string(connection: HTTPConnection) -> str:
5 path = connection.url.path 5 path = connection.url.path
6 query_string = '?' + connection.scope['query_string'].decode() if connection.scope['query_string'] else '' 6 query_string = (
7 "?" + connection.scope["query_string"].decode()
8 if connection.scope["query_string"]
9 else ""
10 )
7 return f"{path}{query_string}" 11 return f"{path}{query_string}"