diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2016-06-29 16:56:43 -0700 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-06-29 23:59:41 +0000 |
commit | 51b08d511e8b42eace59588a7eea73c4d21d222d (patch) | |
tree | 69f34a2ca4dc1a2eadad22e710d516fb0be98b5e | |
parent | cc6f5f6ce1daca51f475764a3e4fa9420cafcefa (diff) | |
download | go-51b08d511e8b42eace59588a7eea73c4d21d222d.tar.gz go-51b08d511e8b42eace59588a7eea73c4d21d222d.zip |
net/http: be consistent about spelling of HTTP/1.x
There was only one use of "HTTP/1.n" compared to "HTTP/1.x":
h2_bundle.go:// "Just as in HTTP/1.x, header field names are strings of ASCII
httputil/dump.go:// DumpRequest returns the given request in its HTTP/1.x wire
httputil/dump.go:// intact. HTTP/2 requests are dumped in HTTP/1.x form, not in their
response.go:// Write writes r to w in the HTTP/1.x server response format,
server.go: // Request.Body. For HTTP/1.x requests, handlers should read any
server.go:// The default HTTP/1.x and HTTP/2 ResponseWriter implementations
server.go:// The default ResponseWriter for HTTP/1.x connections supports
server.go:// http1ServerSupportsRequest reports whether Go's HTTP/1.x server
server.go: // about HTTP/1.x Handlers concurrently reading and writing, like
server.go: // HTTP/1.x from here on.
transport.go: return fmt.Errorf("net/http: HTTP/1.x transport connection broken: %v", err)
Be consistent.
Change-Id: I93c4c873e500f51af2b4762055e22f5487a625ac
Reviewed-on: https://go-review.googlesource.com/24610
Reviewed-by: Andrew Gerrand <adg@golang.org>
-rw-r--r-- | src/net/http/response.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/http/response.go b/src/net/http/response.go index 979651c08a..5450d50c3c 100644 --- a/src/net/http/response.go +++ b/src/net/http/response.go @@ -213,7 +213,7 @@ func (r *Response) ProtoAtLeast(major, minor int) bool { r.ProtoMajor == major && r.ProtoMinor >= minor } -// Write writes r to w in the HTTP/1.n server response format, +// Write writes r to w in the HTTP/1.x server response format, // including the status line, headers, body, and optional trailer. // // This method consults the following fields of the response r: |