diff options
| author | Sean Liao <sean@liao.dev> | 2025-10-09 02:26:02 +0100 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-10-10 14:39:53 -0700 |
| commit | aced4c79a2b2c60e464410cec1e5378d1011fa18 (patch) | |
| tree | 919329b65bab5ca283b9afb128cdc71aa3c199bd /src/encoding/json/decode_test.go | |
| parent | 584a89fe7455470b09643b30bdc3cc55bb75a552 (diff) | |
| download | go-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
