diff options
| author | Damien Neil <dneil@google.com> | 2022-01-04 10:34:50 -0800 |
|---|---|---|
| committer | Damien Neil <dneil@google.com> | 2022-03-31 23:30:43 +0000 |
| commit | a41763539c7ad09a22720a517a28e6018ca4db0f (patch) | |
| tree | 0bde212ab0529a136569fa7e238a2e274337b815 /src/debug | |
| parent | fb2a9d27e395af5bb0c88d0fa453bba868275800 (diff) | |
| download | go-a41763539c7ad09a22720a517a28e6018ca4db0f.tar.xz | |
net/http: handle 3xx responses with no Location
RFC 7231 does not require that a 3xx response contain a Location header.
When receiving such a response, just return it to the caller rather than
treating it as an error.
Fixes #49281.
Change-Id: I66c06d81b0922016384a0f4ff32bf52e3a3d5983
Reviewed-on: https://go-review.googlesource.com/c/go/+/375354
Trust: Damien Neil <dneil@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Trust: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/debug')
0 files changed, 0 insertions, 0 deletions
