From 926aa7335758561b69e820dacdc538d113faf69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Mon, 6 Oct 2025 10:01:57 +0200 Subject: [PATCH] praca za proxy --- app/api.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/api.py b/app/api.py index 8d41d1b..201be8b 100644 --- a/app/api.py +++ b/app/api.py @@ -165,4 +165,10 @@ async def reload(creds: HTTPBasicCredentials = Depends(security)): @router.get('/health') async def health(): - return {'status':'ok'} \ No newline at end of file + return {'status':'ok'} + +from fastapi import Request + +@router.get("/_debug/headers") +async def debug_headers(request: Request): + return {"headers": dict(request.headers)} \ No newline at end of file