]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.21] cmd/go/internal/web: release the net token when an HTTP reque...
authorBryan C. Mills <bcmills@google.com>
Wed, 9 Aug 2023 21:14:30 +0000 (17:14 -0400)
committerMichael Knyszek <mknyszek@google.com>
Fri, 11 Aug 2023 14:53:49 +0000 (14:53 +0000)
commit75d8be5fb4cbc1a539a99557cef93dcdef997bf5
treef0d6fe5acece90e66bcf9fcbc2762455eb44e479
parent1755d1455977cb9dc6cdfa032dfd1c370e2a4097
[release-branch.go1.21] cmd/go/internal/web: release the net token when an HTTP request fails due to CheckRedirect

Updates #61877.
Fixes #61905.

Change-Id: I38c63565aaf9dc9b0c8085974521daccfbcbc790
Reviewed-on: https://go-review.googlesource.com/c/go/+/518015
Reviewed-by: Michael Matloob <matloob@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit 8cb5c55118a8273e1cc605b8ba167297808c4eda)
Reviewed-on: https://go-review.googlesource.com/c/go/+/518395
src/cmd/go/internal/web/http.go
src/cmd/go/testdata/script/mod_get_insecure_redirect.txt [new file with mode: 0644]