diff options
| author | David Symonds <dsymonds@golang.org> | 2011-03-02 10:10:12 +1100 |
|---|---|---|
| committer | David Symonds <dsymonds@golang.org> | 2011-03-02 10:10:12 +1100 |
| commit | 1d258a554a4a09a9f75c65ebc0f388c2bbb318a1 (patch) | |
| tree | fd98313365d4cb601e2ec38b403a6ca94426063d /src/pkg/http/request.go | |
| parent | 60f193781de8d0b4e96ca92952915de3f21abfca (diff) | |
| download | go-1d258a554a4a09a9f75c65ebc0f388c2bbb318a1.tar.xz | |
http: give ParseHTTPVersion a real example.
R=rsc
CC=golang-dev
https://golang.org/cl/4239050
Diffstat (limited to 'src/pkg/http/request.go')
| -rw-r--r-- | src/pkg/http/request.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go index 0fd5df4e3b..a7dc328a00 100644 --- a/src/pkg/http/request.go +++ b/src/pkg/http/request.go @@ -316,7 +316,7 @@ func atoi(s string, i int) (n, i1 int, ok bool) { } // ParseHTTPVersion parses a HTTP version string. -// "HTTP/1.2" returns (1, 2, true). +// "HTTP/1.0" returns (1, 0, true). func ParseHTTPVersion(vers string) (major, minor int, ok bool) { if len(vers) < 5 || vers[0:5] != "HTTP/" { return 0, 0, false |
