5 Commits
Author SHA1 Message Date
wilkie 738a0af1dd Fix deprecation warning about =~ being called on TrueClass.
With the code as it was, it will generate a warning like such:

.../websocket-extensions-0.1.3/lib/websocket/extensions/parser.rb:41:
warning: deprecated Object#=~ is called on TrueClass; it always returns
nil

So we will avoid if the variable is TrueClass.
2019-05-24 14:42:31 +01:00
James Coglan 7ef1451923 Header parser should accept uppercase letters. 2017-11-11 01:04:05 +00:00
Juan M. Cuello fb23226189 Require 'strscan' to be sure StringScanner will be present. 2014-12-13 21:08:45 -03:00
James Coglan da85aed6b3 Port the Extensions class from websocket-extensions-node. 2014-12-01 20:31:42 +00:00
James Coglan 14d818b602 Implement a parser for the Sec-WebSocket-Extensions header. 2014-12-01 08:18:24 +00:00