From: Shenghou Ma Date: Wed, 11 Dec 2013 04:35:50 +0000 (-0500) Subject: net/http: document that body is closed after (*Request).Write. X-Git-Tag: go1.3beta1~1266 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=77fe6befb7852d58250c4ebe12d80d665f900829;p=gostls13.git net/http: document that body is closed after (*Request).Write. Fixes #6911. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/38690043 --- diff --git a/src/pkg/net/http/response.go b/src/pkg/net/http/response.go index 35d0ba3bb1..2ec1d40872 100644 --- a/src/pkg/net/http/response.go +++ b/src/pkg/net/http/response.go @@ -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