]> Cypherpunks repositories - gostls13.git/commit
net/http: keep sensitive headers on redirects to the same host
authorGustavo Falco <comfortablynumb84@gmail.com>
Sun, 11 Dec 2022 02:39:20 +0000 (02:39 +0000)
committerDamien Neil <dneil@google.com>
Thu, 26 Jan 2023 00:52:05 +0000 (00:52 +0000)
commit451106921fbcbbae37769db582aea52bf8f728e6
tree07511e57c6a654879cf3e08314532cf37816bb21
parentde9bffb5f12c4985d8369c39e158fe946f369e82
net/http: keep sensitive headers on redirects to the same host

Preserve sensitive headers on a redirect to a different port of the same host.

Fixes #35104

Change-Id: I5ab57c414ce92a70e688ee684b9ff02fb062b3c6
GitHub-Last-Rev: 8d53e71e2243c141d70d27a503d0f7e6dee64c3c
GitHub-Pull-Request: golang/go#54539
Reviewed-on: https://go-review.googlesource.com/c/go/+/424935
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
src/net/http/client.go
src/net/http/client_test.go
src/net/http/transport.go