aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/http
diff options
context:
space:
mode:
authorRobert Hencke <robert.hencke@gmail.com>2011-05-18 13:14:56 -0400
committerRuss Cox <rsc@golang.org>2011-05-18 13:14:56 -0400
commitc8727c81bb21293147bb4edc19a0b895d88eba3b (patch)
tree8ca1f84df192e3efd04f31c0d9ddcbb17a339e1e /src/pkg/http
parentb2563580088dcec7896b0d858c969ba7f25c16ae (diff)
downloadgo-c8727c81bb21293147bb4edc19a0b895d88eba3b.tar.xz
pkg: spelling tweaks, A-H
R=ality, bradfitz, rsc, dsymonds, adg, qyzhai, dchest CC=golang-dev https://golang.org/cl/4536063
Diffstat (limited to 'src/pkg/http')
-rw-r--r--src/pkg/http/chunked.go2
-rw-r--r--src/pkg/http/persist.go2
-rw-r--r--src/pkg/http/serve_test.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/http/chunked.go b/src/pkg/http/chunked.go
index 66195f06b9..bfd68a4408 100644
--- a/src/pkg/http/chunked.go
+++ b/src/pkg/http/chunked.go
@@ -18,7 +18,7 @@ func NewChunkedWriter(w io.Writer) io.WriteCloser {
}
// Writing to ChunkedWriter translates to writing in HTTP chunked Transfer
-// Encoding wire format to the undering Wire writer.
+// Encoding wire format to the underlying Wire writer.
type chunkedWriter struct {
Wire io.Writer
}
diff --git a/src/pkg/http/persist.go b/src/pkg/http/persist.go
index 4eb4ab0cdf..62f9ff1b54 100644
--- a/src/pkg/http/persist.go
+++ b/src/pkg/http/persist.go
@@ -111,7 +111,7 @@ func (sc *ServerConn) Read() (req *Request, err os.Error) {
// Make sure body is fully consumed, even if user does not call body.Close
if lastbody != nil {
// body.Close is assumed to be idempotent and multiple calls to
- // it should return the error that its first invokation
+ // it should return the error that its first invocation
// returned.
err = lastbody.Close()
if err != nil {
diff --git a/src/pkg/http/serve_test.go b/src/pkg/http/serve_test.go
index 8c91983b2a..60d41edf3d 100644
--- a/src/pkg/http/serve_test.go
+++ b/src/pkg/http/serve_test.go
@@ -551,7 +551,7 @@ var serverExpectTests = []serverExpectTest{
{100, "", true, "200 OK"},
// 100-continue but requesting client to deny us,
- // so it never eads the body.
+ // so it never reads the body.
{100, "100-continue", false, "401 Unauthorized"},
// Likewise without 100-continue:
{100, "", false, "401 Unauthorized"},