diff options
author | Russ Cox <rsc@golang.org> | 2011-05-03 01:39:17 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-05-03 01:39:17 -0400 |
commit | 50e57603ab7b1346055316654bdf01b0565ee700 (patch) | |
tree | 19c3fe748e5f697d3109e2098b452897c7c83b00 | |
parent | d00421a6b15132e17ae2b2cb64b8a2b66366a857 (diff) | |
download | go-50e57603ab7b1346055316654bdf01b0565ee700.tar.gz go-50e57603ab7b1346055316654bdf01b0565ee700.zip |
[release-branch.r57] http: rename ErrBodyReadAferClose to ErrBodyReadAfterClose
««« CL 4432085 / 370c77323b75
http: rename ErrBodyReadAferClose to ErrBodyReadAfterClose
R=bradfitz, dsymonds
CC=golang-dev
https://golang.org/cl/4432085
»»»
TBR=adg
CC=golang-dev
https://golang.org/cl/4425086
-rw-r--r-- | src/pkg/http/transfer.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/http/transfer.go b/src/pkg/http/transfer.go index 5d32aabbfa..0fa8bed43a 100644 --- a/src/pkg/http/transfer.go +++ b/src/pkg/http/transfer.go @@ -442,15 +442,15 @@ type body struct { closed bool } -// ErrBodyReadAferClose is returned when reading a Request Body after +// ErrBodyReadAfterClose is returned when reading a Request Body after // the body has been closed. This typically happens when the body is // read after an HTTP Handler calls WriteHeader or Write on its // ResponseWriter. -var ErrBodyReadAferClose = os.NewError("http: invalid Read on closed request Body") +var ErrBodyReadAfterClose = os.NewError("http: invalid Read on closed request Body") func (b *body) Read(p []byte) (n int, err os.Error) { if b.closed { - return 0, ErrBodyReadAferClose + return 0, ErrBodyReadAfterClose } return b.Reader.Read(p) } |