From 74109c8cbf568d9c660f3b8cbb1de0d72fa97314 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Mon, 25 Aug 2025 17:15:14 +0200 Subject: [PATCH] fixed logging --- main_app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main_app.py b/main_app.py index 552693d..f5f91d8 100644 --- a/main_app.py +++ b/main_app.py @@ -37,6 +37,7 @@ HOP_BY_HOP_HEADERS = { async def call_official(request: Request, path: str) -> httpx.Response: """Forward the incoming request to the official API and return the response.""" + print(f"Processing request to {str(request.url)}") # Copy request body body = await request.body() @@ -54,7 +55,7 @@ async def call_official(request: Request, path: str) -> httpx.Response: # Forward request upstream upstream_response = await official_client.request( method=request.method, - url=f"{str(request.base_url).rstrip('/').replace("http://", "https://")}/{path}", # f"{OFFICIAL_API}/{path}", + url=f"{str(request.base_url).rstrip('/').replace("http://", "https://")}/{path}", headers=req_headers, content=body, params=request.query_params,