diff --git a/mrok/proxy/app.py b/mrok/proxy/app.py index 8a54b8c..e441a8c 100644 --- a/mrok/proxy/app.py +++ b/mrok/proxy/app.py @@ -174,11 +174,10 @@ def _merge_x_forwarded(self, headers: list[tuple[bytes, bytes]], scope: Scope) - def _format_path(self, scope: Scope) -> str: path = scope.get("raw_path") if path: - return path.decode() + path = path.decode() else: path = scope.get("path", "/") q = scope.get("query_string", b"") - path = scope.get("path", "/") path_qs = path if q: path_qs += "?" + q.decode()