]> Cypherpunks repositories - gostls13.git/commit
Cosmetic bug or compliance fixes in http.Response.
authorPetar Maymounkov <petarm@gmail.com>
Thu, 28 Jan 2010 23:13:26 +0000 (15:13 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 28 Jan 2010 23:13:26 +0000 (15:13 -0800)
commita0e6f03add91af28cce2f2f5a8ec5d2e859de6f4
treec00157898bd4ef5d653a39414a0b1fe15b98ade8
parentd53b426fa0561a00ed969f47bf74183101d734d6
Cosmetic bug or compliance fixes in http.Response.

(1) http.Response must close resp.Body after writing.
(2) Case when resp.Body != nil and resp.ContentLength = 0 should not be
treated as an error in Response.Write, because this is what
ReadResponse often returns.
(3) Changed body.th to body.hdr for readability.

R=rsc
CC=golang-dev
https://golang.org/cl/194084
src/pkg/http/request.go
src/pkg/http/response.go