aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/decode_test.go
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2025-10-09 02:26:02 +0100
committerGopher Robot <gobot@golang.org>2025-10-10 14:39:53 -0700
commitaced4c79a2b2c60e464410cec1e5378d1011fa18 (patch)
tree919329b65bab5ca283b9afb128cdc71aa3c199bd /src/encoding/json/decode_test.go
parent584a89fe7455470b09643b30bdc3cc55bb75a552 (diff)
downloadgo-aced4c79a2b2c60e464410cec1e5378d1011fa18.tar.xz
net/http: strip request body headers on POST to GET redirects
According to WHATWG Fetch, when the body is dropped in a redirect, headers that describe the body should also be dropped. https://fetch.spec.whatwg.org/#http-redirect-fetch Fixes #57273 Change-Id: I84598f69608e95c1b556ea0ce5953ed43bf2d824 Reviewed-on: https://go-review.googlesource.com/c/go/+/710395 Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/encoding/json/decode_test.go')
0 files changed, 0 insertions, 0 deletions