-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
Missing header "content-length" when http get request with redirecting #40787
Comments
http.StatusOK |
My bad, I missed that the code was already checking for this. I think you should ask your question on one of the other forums. I'm pretty confident this is not a Go bug and, while may not be what you want, is working as intended. Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For asking questions, see:
|
3ks! I thought is might be a bug of http library. But I should ask for helper on these websites you providers. I'll try. |
It is likely that the |
Find a way to workaround redirecting |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I use to http.Client to get a file and print response headers and no content length found. But it can be found using comand "curl -I -L "
What did you expect to see?
All headers the redirected location has.
curl -I -L < src_url_old >
What did you see instead?
glog outputs following headers below. Just no content-length
The text was updated successfully, but these errors were encountered: