diff options
author | 2023-07-26 20:24:36 -0700 | |
---|---|---|
committer | 2023-07-26 20:24:36 -0700 | |
commit | ec2cf38ad85d05bb15080d88febd2476548987c8 (patch) | |
tree | 6709e89d14a1c37716b47676bcaf51600579bbf3 /src | |
parent | 34fd4df6460dfb46b20445c15e4eaa7561deba99 (diff) | |
download | bun-ec2cf38ad85d05bb15080d88febd2476548987c8.tar.gz bun-ec2cf38ad85d05bb15080d88febd2476548987c8.tar.zst bun-ec2cf38ad85d05bb15080d88febd2476548987c8.zip |
[fetch] Ignore invalid Content-Encoding header (#3834)
Fixes #3802
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/http_client_async.zig | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/http_client_async.zig b/src/http_client_async.zig index 441c8ae47..d49f7814d 100644 --- a/src/http_client_async.zig +++ b/src/http_client_async.zig @@ -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") => { |