diff options
author | Katie Hockman <katie@golang.org> | 2021-04-28 14:44:09 -0400 |
---|---|---|
committer | Katie Hockman <katie@golang.org> | 2021-04-28 19:55:12 +0000 |
commit | d4adea20f01627098936e050d3a73922f7ebe08f (patch) | |
tree | c69f2c30941e49c91c9be72d66ec29eb621edc99 /src/vendor | |
parent | f12cf7694f491a13bb39741d183034a917a994b3 (diff) | |
download | go-d4adea20f01627098936e050d3a73922f7ebe08f.tar.gz go-d4adea20f01627098936e050d3a73922f7ebe08f.zip |
[release-branch.go1.16] std: update golang.org/x/net to 20210428183300-3f4a416c7d3b
Steps:
go get -d golang.org/x/net@internal-branch.go1.16-vendor
go mod tidy
go mod vendor
This http2 bundle does not need to be updated.
Fixes #45712
Change-Id: I7c86c31248e0cd250d17495c3f985671cfcf44a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/314789
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/vendor')
-rw-r--r-- | src/vendor/golang.org/x/net/http/httpguts/httplex.go | 10 | ||||
-rw-r--r-- | src/vendor/modules.txt | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/vendor/golang.org/x/net/http/httpguts/httplex.go b/src/vendor/golang.org/x/net/http/httpguts/httplex.go index e7de24ee64..c79aa73f28 100644 --- a/src/vendor/golang.org/x/net/http/httpguts/httplex.go +++ b/src/vendor/golang.org/x/net/http/httpguts/httplex.go @@ -137,11 +137,13 @@ func trimOWS(x string) string { // contains token amongst its comma-separated tokens, ASCII // case-insensitively. func headerValueContainsToken(v string, token string) bool { - v = trimOWS(v) - if comma := strings.IndexByte(v, ','); comma != -1 { - return tokenEqual(trimOWS(v[:comma]), token) || headerValueContainsToken(v[comma+1:], token) + for comma := strings.IndexByte(v, ','); comma != -1; comma = strings.IndexByte(v, ',') { + if tokenEqual(trimOWS(v[:comma]), token) { + return true + } + v = v[comma+1:] } - return tokenEqual(v, token) + return tokenEqual(trimOWS(v), token) } // lowerASCII returns the ASCII lowercase version of b. diff --git a/src/vendor/modules.txt b/src/vendor/modules.txt index 04bb67e58d..b18d36639a 100644 --- a/src/vendor/modules.txt +++ b/src/vendor/modules.txt @@ -8,7 +8,7 @@ golang.org/x/crypto/curve25519 golang.org/x/crypto/hkdf golang.org/x/crypto/internal/subtle golang.org/x/crypto/poly1305 -# golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 +# golang.org/x/net v0.0.0-20210428183300-3f4a416c7d3b ## explicit golang.org/x/net/dns/dnsmessage golang.org/x/net/http/httpguts |