/ go Public
net/http: on CheckRedirect failure, error message should refer to the original (redirected) URL, not the rejected redirect #34080
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
What did you do?
Ran the program found at https://play.golang.org/p/42egMHzeuTR.
What did you expect to see?
http.Clientshould not have attempted to fetch the insecure URL in the first place, the insecure URL should not be the one reported for the failed
What did you see instead?
The URL that follows the
Gettoken is one for which no HTTP
GETwas actually attempted.
The text was updated successfully, but these errors were encountered: