Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http #40120

Closed
juzidong opened this issue Jul 8, 2020 · 2 comments
Closed

net/http #40120

juzidong opened this issue Jul 8, 2020 · 2 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@juzidong
Copy link

juzidong commented Jul 8, 2020

What version of Go are you using (go version)?

$ go version 1.36

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

When I got a 302 Redirect with Location containing a '\t', the http.client went wrong.
func (c *Client) do(req *Request) (retres *Response, reterr error) {
...
u, err := req.URL.Parse(loc)
if err != nil {
resp.closeBody()
return nil, uerr(fmt.Errorf("failed to parse Location header %q: %v", loc, err))
}
...
}

What did you expect to see?

I'd like to see the Location should replace all '\t' with "" before Parse().

What did you see instead?

@seankhliao
Copy link
Member

that does not appear to be a valid go version

can you show an example of a Location you are getting?

@mvdan mvdan added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Jul 8, 2020
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Aug 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants