From d8968acab83c7a91b01eee4b35828a2b05c8dd6b Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Wed, 1 Jul 2026 21:41:38 +0200 Subject: Split each part into its own app --- proxy/utils.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 proxy/utils.py (limited to 'proxy/utils.py') diff --git a/proxy/utils.py b/proxy/utils.py new file mode 100644 index 0000000..2b80f43 --- /dev/null +++ b/proxy/utils.py @@ -0,0 +1,7 @@ +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 '' + return f"{path}{query_string}" -- cgit v1.2.3