lib/em-websocket/masking04.rb in em-websocket-0.3.6 vs lib/em-websocket/masking04.rb in em-websocket-0.3.7
- old
+ new
@@ -27,10 +27,10 @@
super
end
end
def getbytes(start_index, count)
- data = ''
+ data = ''.force_encoding('ASCII-8BIT')
count.times do |i|
data << getbyte(start_index + i)
end
data
end