lib/websocket/handshake/base.rb in websocket-1.2.7 vs lib/websocket/handshake/base.rb in websocket-1.2.8
- old
+ new
@@ -23,10 +23,10 @@
end
@state = :new
@handler = nil
- @data = +''
+ @data = String.new('')
@headers ||= {}
@protocols ||= []
end
# @abstract Add data to handshake