lib/archival/helper_server.rb in archival-0.0.4 vs lib/archival/helper_server.rb in archival-0.0.5
- old
+ new
@@ -127,10 +127,10 @@
unmasked_data = data.each_with_index.map do |byte, i|
byte ^ mask[i % 4]
end
# warn "Unmasked the data: #{unmasked_data.inspect}"
- unmasked_data.to_s.pack('C*').force_encoding('utf-8')
+ unmasked_data.pack('C*').force_encoding('utf-8')
end
def ws_sendmessage(message)
return unless @socket