You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http2: don't send Connection-level headers in Transport
Accept common things that users might try to do to be helpful (managed
by net/http anyway, and previously legal or at best ignored), like
Connection: close
Connection: keep-alive
Transfer-Encoding: chunked
But reject all other connection-level headers, per http2 spec. The
Google GFE enforces this, so we need to filter these before sending,
and give users a better error message for the ones we can't safely
filter. That is, reject any connection-level header that we don't know
the meaning of.
This CL also makes "Connection: close" mean the same as Request.Close,
and respects that as well, which was previously ignored in http2.
Mostly tests.
Updates golang/go#14227
Change-Id: I06e20286f71e8416149588e2c6274a3fce68033b
Reviewed-on: https://go-review.googlesource.com/19223
Reviewed-by: Andrew Gerrand <adg@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
0 commit comments