lib/em-websocket/masking04.rb in em-websocket-0.3.7 vs lib/em-websocket/masking04.rb in em-websocket-0.3.8

- old
+ new

@@ -27,10 +27,11 @@ super end end def getbytes(start_index, count) - data = ''.force_encoding('ASCII-8BIT') + data = '' + data.force_encoding('ASCII-8BIT') if data.respond_to?(:force_encoding) count.times do |i| data << getbyte(start_index + i) end data end