mirror of
https://github.com/masterking32/MasterHttpRelayVPN.git
synced 2026-05-17 21:24:37 +03:00
feat: strip accept-encoding header to ensure uncompressed responses in relay
This commit is contained in:
@@ -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",
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user