mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
[bun] Don't allow Transfer-Encoding header
This commit is contained in:
@@ -548,6 +548,8 @@ fn NewRequestContext(comptime ssl_enabled: bool, comptime debug_mode: bool, comp
|
||||
headers: *JSC.FetchHeaders,
|
||||
) void {
|
||||
headers.remove(&ZigString.init("content-length"));
|
||||
headers.remove(&ZigString.init("transfer-encoding"));
|
||||
if (!ssl_enabled) headers.remove(&ZigString.init("strict-transport-security"));
|
||||
headers.toUWSResponse(ssl_enabled, this.resp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user