diff options
author | 2023-09-13 05:02:25 -0400 | |
---|---|---|
committer | 2023-09-13 02:02:25 -0700 | |
commit | 9101774593288e32c7d9f0c77ab6f133628ebd10 (patch) | |
tree | b1412c04f86c17c488f2fb1b9a9854abb6d44a03 /src | |
parent | 9a0ea0070523c02133c634a1576c9516bde19888 (diff) | |
download | bun-9101774593288e32c7d9f0c77ab6f133628ebd10.tar.gz bun-9101774593288e32c7d9f0c77ab6f133628ebd10.tar.zst bun-9101774593288e32c7d9f0c77ab6f133628ebd10.zip |
avoid inserting extraneous"accept-encoding" header (#5057)
* add no extraneous accept-encoding header test
* ensure fetch honors no decompress opt
* fix format on test/js/node/http/node-http.test.ts
Diffstat (limited to 'src')
-rw-r--r-- | src/http_client_async.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http_client_async.zig b/src/http_client_async.zig index f06474219..79fe74899 100644 --- a/src/http_client_async.zig +++ b/src/http_client_async.zig @@ -2122,7 +2122,7 @@ pub fn buildRequest(this: *HTTPClient, body_len: usize) picohttp.Request { header_count += 1; } - if (!override_accept_encoding) { + if (!override_accept_encoding and !this.disable_decompression) { request_headers_buf[header_count] = accept_encoding_header; header_count += 1; } |