]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: document that body is closed after (*Request).Write.
authorShenghou Ma <minux.ma@gmail.com>
Wed, 11 Dec 2013 04:35:50 +0000 (23:35 -0500)
committerShenghou Ma <minux.ma@gmail.com>
Wed, 11 Dec 2013 04:35:50 +0000 (23:35 -0500)
Fixes #6911.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/38690043

src/pkg/net/http/response.go

index 35d0ba3bb151343bab52f5f00bfb8995c269b910..2ec1d408728c1a49f90bc59a2538b5aceff1c1a9 100644 (file)
@@ -187,6 +187,7 @@ func (r *Response) ProtoAtLeast(major, minor int) bool {
 //  ContentLength
 //  Header, values for non-canonical keys will have unpredictable behavior
 //
+// Body is closed after it is sent.
 func (r *Response) Write(w io.Writer) error {
 
        // Status line