From 89adf5dce4e47d4e2c9a53ec0f210b8397a49a09 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Sun, 1 May 2011 12:37:20 -0700 Subject: [PATCH] http: rename ErrBodyReadAferClose to ErrBodyReadAfterClose R=bradfitz, dsymonds CC=golang-dev https://golang.org/cl/4432085 --- src/pkg/http/transfer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pkg/http/transfer.go b/src/pkg/http/transfer.go index 5d32aabbfaa..0fa8bed43aa 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) }