lib/rex/proto/http/packet.rb in librex-0.0.38 vs lib/rex/proto/http/packet.rb in librex-0.0.39
- old
+ new
@@ -164,10 +164,10 @@
#
# Converts the packet to a string.
#
def to_s
- content = self.body.dup
+ content = self.body.to_s.dup
# Update the content length field in the header with the body length.
if (content)
if !self.compress.nil?
case self.compress