aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-07-26 20:24:36 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-26 20:24:36 -0700
commitec2cf38ad85d05bb15080d88febd2476548987c8 (patch)
tree6709e89d14a1c37716b47676bcaf51600579bbf3
parent34fd4df6460dfb46b20445c15e4eaa7561deba99 (diff)
downloadbun-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>
-rw-r--r--src/http_client_async.zig2
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") => {