diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2016-01-25 21:20:17 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-01-25 21:45:12 +0000 |
commit | db5cb1d8cdf957c96fa44c340fb0fc53f2b3231e (patch) | |
tree | 1f50417fe8bf98259d51ae7d7e31407ea72a9e46 | |
parent | 7688ffe1341a534d42367410f4a4bef0a31a7f37 (diff) | |
download | go-db5cb1d8cdf957c96fa44c340fb0fc53f2b3231e.tar.gz go-db5cb1d8cdf957c96fa44c340fb0fc53f2b3231e.zip |
net/http: update bundled http2
Updates x/net/http2 to git rev 2e9cee70 for https://golang.org/cl/18801
Change-Id: I4689c5704bb0b12d569925f81c3e699857ea463e
Reviewed-on: https://go-review.googlesource.com/18931
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r-- | src/net/http/h2_bundle.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/http/h2_bundle.go b/src/net/http/h2_bundle.go index bdbdadb5b2..2110641955 100644 --- a/src/net/http/h2_bundle.go +++ b/src/net/http/h2_bundle.go @@ -2098,6 +2098,8 @@ func http2validHeaderFieldName(v string) bool { // validHeaderFieldValue reports whether v is a valid header field value. // // RFC 7230 says: +// field-value = *( field-content / obs-fold ) +// obj-fold = N/A to http2, and deprecated // field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] // field-vchar = VCHAR / obs-text // obs-text = %x80-FF @@ -2117,7 +2119,7 @@ func http2validHeaderFieldName(v string) bool { // strings that begin or end with SP or HTAB. func http2validHeaderFieldValue(v string) bool { for i := 0; i < len(v); i++ { - if b := v[i]; b < ' ' && b != '\t' { + if b := v[i]; b < ' ' && b != '\t' || b == 0x7f { return false } } |