From 21f307dadbeabe8f2b9435f0b03747f925204129 Mon Sep 17 00:00:00 2001 From: Gitz Date: Sun, 17 Aug 2025 17:07:46 +0300 Subject: [PATCH] fix: enable follow_redirects for httpx client to handle 307 status codes - Added follow_redirects=True to httpx.AsyncClient configuration - This resolves issues with 307 Temporary Redirect responses - Ensures proper handling of redirect responses from Flagsmith API - All existing tests continue to pass --- src/edge_proxy/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/edge_proxy/server.py b/src/edge_proxy/server.py index 372109d..46e8295 100644 --- a/src/edge_proxy/server.py +++ b/src/edge_proxy/server.py @@ -21,7 +21,10 @@ setup_logging(settings.logging) environment_service = EnvironmentService( LocalMemEnvironmentsCache(), - httpx.AsyncClient(timeout=settings.api_poll_timeout_seconds), + httpx.AsyncClient( + timeout=settings.api_poll_timeout_seconds, + follow_redirects=True, + ), settings, )