diff options
author | Russ Cox <rsc@golang.org> | 2009-06-29 15:24:23 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-06-29 15:24:23 -0700 |
commit | 755e009ad2a874373454d488f9ea46648a8a9547 (patch) | |
tree | ed3d700304a76b08cdca0f356605077c58ee0f76 /src/pkg/http/request.go | |
parent | 24323437280c7f0a166b7f2fae75620470cde0f9 (diff) | |
download | golang-755e009ad2a874373454d488f9ea46648a8a9547.tar.gz |
io.StringBytes -> strings.Bytes
io.ByteBuffer -> bytes.Buffer
left io.ByteBuffer stub around for now,
for protocol compiler.
R=r
OCL=30861
CL=30872
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 ef6dbe673..59801e1eb 100644 --- a/src/pkg/http/request.go +++ b/src/pkg/http/request.go @@ -359,7 +359,7 @@ func CanonicalHeaderKey(s string) string { // and upper case after each dash. // (Host, User-Agent, If-Modified-Since). // HTTP headers are ASCII only, so no Unicode issues. - a := io.StringBytes(s); + a := strings.Bytes(s); upper := true; for i,v := range a { if upper && 'a' <= v && v <= 'z' { |