fix: skip Accept-Encoding during header passthrough (#2214)

This commit is contained in:
hekx
2026-02-24 09:58:50 +08:00
parent 7cf35ca8db
commit b32e1c9ef1
2 changed files with 30 additions and 2 deletions
+3 -2
View File
@@ -61,8 +61,9 @@ var passthroughSkipHeaderNamesLower = map[string]struct{}{
"cookie": {},
// Additional headers that should not be forwarded by name-matching passthrough rules.
"host": {},
"content-length": {},
"host": {},
"content-length": {},
"accept-encoding": {},
// Do not passthrough credentials by wildcard/regex.
"authorization": {},