lib/rev/websocket/spec.rb in rev-websocket-0.1.0 vs lib/rev/websocket/spec.rb in rev-websocket-0.1.1

- old
+ new

@@ -31,15 +31,10 @@ return false # not yet opened end def process_challenge_response - return false if @data.size < 10 - - crln = @data.read(2) # read \r\n bytes - if crln != "\r\n" - raise RuntimeError, "invalid request" - end + return false if @data.size < 8 key_3 = @data.read(8) @state = remove_instance_variable(:@state_save)