]> Cypherpunks repositories - gostls13.git/commit
websocket: tweak hybi ReadHandshake to supports Firefox implementation
authorLuca Greco <luca.greco@alcacoop.it>
Fri, 14 Oct 2011 18:27:45 +0000 (14:27 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 14 Oct 2011 18:27:45 +0000 (14:27 -0400)
commitd296fa1c9523d5c767cbf2def38c9360fae97af6
tree585fa249361766a9bf2b978c4a8e9ed426ceb3f9
parent6c1f4ff15f45e9a00aea334b25094aebfdbf78fb
websocket: tweak hybi ReadHandshake to supports Firefox implementation

Firefox Websocket implementation send a "Connection: keep-alive, upgrade"
header during the handshake (and as descripted on the last hybi draft
the "Connection" header must include, but doesn't need to be equal to,
"upgrade":

   '4. A "Connection" header field that includes the token "Upgrade",
    treated as an ASCII case-insensitive value.'

From:
http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-17#page-23

R=golang-dev, ukai, cw, rsc
CC=golang-dev
https://golang.org/cl/5233059
src/pkg/websocket/hybi.go
src/pkg/websocket/hybi_test.go