fix(proxy): strip hop-by-hop response headers per RFC 7230 (#2060)

This commit is contained in:
Dex Miller
2026-04-15 11:28:56 +08:00
committed by GitHub
parent 78198e262b
commit ef41e4da46
3 changed files with 130 additions and 10 deletions
+1 -2
View File
@@ -428,8 +428,7 @@ impl StreamCheckService {
.header("x-stainless-retry-count", "0")
.header("x-stainless-timeout", "600")
// Other headers
.header("sec-fetch-mode", "cors")
.header("connection", "keep-alive");
.header("sec-fetch-mode", "cors");
}
// 供应商自定义 headers 最后追加,允许覆盖内置默认值(例如 user-agent