lib/protocol/http1/body/chunked.rb in protocol-http1-0.20.0 vs lib/protocol/http1/body/chunked.rb in protocol-http1-0.21.0
- old
+ new
@@ -43,11 +43,11 @@
return nil if @finished
length, _extensions = read_line.split(";", 2)
unless length =~ VALID_CHUNK_LENGTH
- raise BadRequest, "Invalid chunk length: #{length.dump}"
+ raise BadRequest, "Invalid chunk length: #{length.inspect}"
end
# It is possible this line contains chunk extension, so we use `to_i` to only consider the initial integral part:
length = Integer(length, 16)
@@ -91,10 +91,10 @@
break if line.empty?
if match = line.match(HEADER)
@headers.add(match[1], match[2])
else
- raise BadHeader, "Could not parse header: #{line.dump}"
+ raise BadHeader, "Could not parse header: #{line.inspect}"
end
end
end
end
end