We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
by elazarl:
1. Create a new response 2. Write the response twice 3. The error you'll receive is, "http: invalid Read on closed request Body", which is confusing, s/request/request or response/. For example http://play.golang.org/p/tBwXSkWhMG func main() { req, _ := http.NewRequest("GET", "http://google.com";, strings.NewReader("")) resp, _ := http.ReadResponse( bufio.NewReader(strings.NewReader( "HTTP/1.1 200 OK\r\n"+ "Content-Type: text/plain\r\n"+ "Content-Length: 1\r\n\r\na")), req) resp.Write(ioutil.Discard) fmt.Println(resp.Write(ioutil.Discard)) } [1] http://tip.golang.org/src/pkg/net/http/transfer.go#L528
The text was updated successfully, but these errors were encountered:
Comment 1:
Labels changed: added priority-later, removed priority-triage.
Status changed to Accepted.
Sorry, something went wrong.
Comment 2 by elazarl:
Can I do anything to help fixing it earlier? Will that help if I submit a (ridiculously short) CL?
Comment 3:
Labels changed: added go1.1.
Comment 4:
This issue was closed by revision 4f3dd83.
Status changed to Fixed.
No branches or pull requests
by elazarl:
The text was updated successfully, but these errors were encountered: