aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/http/lex.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/http/lex.go')
-rw-r--r--src/pkg/http/lex.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pkg/http/lex.go b/src/pkg/http/lex.go
index 46e0519576..d25c4e4038 100644
--- a/src/pkg/http/lex.go
+++ b/src/pkg/http/lex.go
@@ -4,10 +4,6 @@
package http
-import (
- "strings"
-)
-
// This file deals with lexical matters of HTTP
func isSeparator(c byte) bool {
@@ -112,7 +108,7 @@ func httpUnquote(raw []byte) (eaten int, result string) {
// the input string might be parsed. result is always non-nil.
func httpSplitFieldValue(fv string) (eaten int, result []string) {
result = make([]string, 0, len(fv))
- raw := strings.Bytes(fv)
+ raw := []byte(fv)
i := 0
chunk := ""
for i < len(raw) {