From 755e009ad2a874373454d488f9ea46648a8a9547 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 29 Jun 2009 15:24:23 -0700 Subject: io.StringBytes -> strings.Bytes io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872 --- src/pkg/http/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/http/request.go') 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' { -- cgit v1.2.3