jcbf/ruby-ftw — pull request #1 by jcbf (2014-03-14 23:20:26+00:00)
Title: Make websocket more RFC friendly

Make websocket more RFC friendly.
RFC6455,Page 18:
The client MUST validate the server's response as follows:
(...)
2. If the response lacks an |Upgrade| header field or the |Upgrade|
header field contains a value that is not an ASCII case-
insensitive match for the value "websocket", the client MUST
_Fail the WebSocket Connection_.

3. If the response lacks a |Connection| header field or the
|Connection| header field doesn't contain a token that is an
ASCII case-insensitive match for the value "Upgrade", the client
MUST _Fail the WebSocket Connection_.