lib/steam/networking/packet.rb in steamrb-0.1.0 vs lib/steam/networking/packet.rb in steamrb-0.1.1

- old
+ new

@@ -37,11 +37,11 @@ # # @return [String] byte string representation of the Packet def encode stream = ByteWriter.new stream.write_unsigned_int32(body.length) - stream.write_string(TCP_MAGIC) - stream.write_string(body) + stream.write(TCP_MAGIC) + stream.write(body) stream.string end # Returns true if the Packet contains other packets #