feat: strip accept-encoding header to ensure uncompressed responses in relay

This commit is contained in:
Abolfazl
2026-05-05 07:39:32 +03:30
parent 64363ed531
commit f42497aa82
5 changed files with 55 additions and 1 deletions
+3
View File
@@ -77,6 +77,9 @@ _STRIP_HEADERS = frozenset(
"x-real-ip",
"forwarded",
"via",
# urllib.request cannot decompress gzip/br/deflate — stripping this
# forces targets to reply with plain bodies the server can forward.
"accept-encoding",
]
)