浏览代码

feat(api): add 'cookie' to passthroughSkipHeaderNamesLower

CaIon 4 周之前
父节点
当前提交
b55e42eda7
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      relay/channel/api_request.go

+ 2 - 0
relay/channel/api_request.go

@@ -58,6 +58,8 @@ var passthroughSkipHeaderNamesLower = map[string]struct{}{
 	"transfer-encoding":   {},
 	"upgrade":             {},
 
+	"cookie": {},
+
 	// Additional headers that should not be forwarded by name-matching passthrough rules.
 	"host":           {},
 	"content-length": {},