From ec2cf38ad85d05bb15080d88febd2476548987c8 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Wed, 26 Jul 2023 20:24:36 -0700 Subject: [fetch] Ignore invalid Content-Encoding header (#3834) Fixes #3802 Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- src/http_client_async.zig | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') 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") => { -- cgit v1.2.3