From: Brad Fitzpatrick Date: Mon, 25 Jan 2016 21:20:17 +0000 (+0000) Subject: net/http: update bundled http2 X-Git-Tag: go1.6rc1~47 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=db5cb1d8cdf957c96fa44c340fb0fc53f2b3231e;p=gostls13.git 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 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- 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 } }