diff options
Diffstat (limited to 'libgo/go/net/http/header.go')
-rw-r--r-- | libgo/go/net/http/header.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/go/net/http/header.go b/libgo/go/net/http/header.go index b9b5391..4c72dcb 100644 --- a/libgo/go/net/http/header.go +++ b/libgo/go/net/http/header.go @@ -7,6 +7,7 @@ package http import ( "io" "net/http/httptrace" + "net/http/internal/ascii" "net/textproto" "sort" "strings" @@ -251,7 +252,7 @@ func hasToken(v, token string) bool { if endPos := sp + len(token); endPos != len(v) && !isTokenBoundary(v[endPos]) { continue } - if strings.EqualFold(v[sp:sp+len(token)], token) { + if ascii.EqualFold(v[sp:sp+len(token)], token) { return true } } |