mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
[fetch] Ignore invalid Content-Encoding header (#3834)
Fixes #3802 Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -2802,8 +2802,6 @@ pub fn handleResponseMetadata(
|
||||
} else if (strings.eqlComptime(header.value, "deflate")) {
|
||||
this.state.encoding = Encoding.deflate;
|
||||
this.state.content_encoding_i = @as(u8, @truncate(header_i));
|
||||
} else if (!strings.eqlComptime(header.value, "identity")) {
|
||||
return error.UnsupportedContentEncoding;
|
||||
}
|
||||
},
|
||||
hashHeaderConst("Transfer-Encoding") => {
|
||||
|
||||
Reference in New Issue
Block a user