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: request fails when server replies with a short gzip body #7750

Closed
snaury opened this issue Apr 10, 2014 · 3 comments
Closed

net/http: request fails when server replies with a short gzip body #7750

snaury opened this issue Apr 10, 2014 · 3 comments
Milestone

Comments

@snaury
Copy link
Contributor

snaury commented Apr 10, 2014

When doing a request to a server that replies with a truncated gzip body the request
immediately fails with ErrUnexpectedEOF and writes "RoundTripper returned a
response & error; ignoring response" to the log. ErrUnexpectedEOF should only
happen when I try to read from the response body, so I have a chance to inspect headers
first.
@gopherbot
Copy link

Comment 1:

CL https://golang.org/cl/84850043 mentions this issue.

@bradfitz
Copy link
Contributor

Comment 2:

Labels changed: added release-go1.3maybe, repo-main.

Status changed to Accepted.

@bradfitz
Copy link
Contributor

Comment 3:

This issue was closed by revision 0944837.

Status changed to Fixed.

@rsc rsc added this to the Go1.3 milestone Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants