From 29a6c8cafc13398414f4b5d9dd17329f4cdc9a6e Mon Sep 17 00:00:00 2001 From: Francesco Faraone Date: Mon, 13 Apr 2026 17:37:40 +0200 Subject: [PATCH] MPT-20236 fix wrong return --- mrok/proxy/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()