]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: remove Content-Encoding header in roundtrip_js
authorcarl.tao <tw2236646986@gmail.com>
Thu, 21 Sep 2023 15:38:33 +0000 (23:38 +0800)
committerDamien Neil <dneil@google.com>
Mon, 6 Nov 2023 21:44:04 +0000 (21:44 +0000)
commit42b20297d314bd72195e9abff55b0c607c2619a8
treecf4169e6a7100741a466ef1ac976801f57c55e57
parentf83bbaf3af8d938bd15429254bbbdcc6d4b42144
net/http: remove Content-Encoding header in roundtrip_js

The fetch api will decode the gzip, but Content-Encoding not be deleted.
To ensure that the behavior of roundtrip_js is consistent with native. delete the Content-Encoding header when the response body is decompressed by js fetch api.

Fixes #63139

Change-Id: Ie35b3aa050786e2ef865f9ffa992e30ab060506e
Reviewed-on: https://go-review.googlesource.com/c/go/+/530155
Commit-Queue: Damien Neil <dneil@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
src/net/http/roundtrip_js.go