From c802651b77bf955321a3558e95368a0486e1adbb Mon Sep 17 00:00:00 2001 From: mateo Date: Fri, 14 Aug 2026 21:23:16 +0000 Subject: [PATCH] refactor: trim passthrough accept-encoding comment Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/passthrough/utils.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/litellm/passthrough/utils.py b/litellm/passthrough/utils.py index 8ce58c423e9..01ed8221198 100644 --- a/litellm/passthrough/utils.py +++ b/litellm/passthrough/utils.py @@ -25,11 +25,8 @@ _PASS_THROUGH_PROTECTED_HEADERS: Final[frozenset] = frozenset( # Header name prefix used to block AWS SigV4 signing headers from being overridden. _PASS_THROUGH_PROTECTED_HEADER_PREFIXES: Final[tuple] = ("x-amz-",) -# Client headers that must never reach the upstream provider. `accept-encoding` is -# dropped so httpx negotiates a content coding it actually has a decoder for: an -# encoding it cannot decode (e.g. brotli, absent the optional `brotli` package) -# leaves the body compressed while get_response_headers strips Content-Encoding, -# handing the client bytes it has no way to read. +# `accept-encoding` is dropped so httpx negotiates a coding it has a decoder for: one it +# cannot decode leaves the body compressed while Content-Encoding is stripped downstream. _NON_FORWARDED_REQUEST_HEADERS: Final[frozenset[str]] = frozenset( { "content-length",