File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def read
45
45
length , _extensions = read_line . split ( ";" , 2 )
46
46
47
47
unless length =~ VALID_CHUNK_LENGTH
48
- raise BadRequest , "Invalid chunk length: #{ length . dump } "
48
+ raise BadRequest , "Invalid chunk length: #{ length . inspect } "
49
49
end
50
50
51
51
# It is possible this line contains chunk extension, so we use `to_i` to only consider the initial integral part:
@@ -93,7 +93,7 @@ def read_trailer
93
93
if match = line . match ( HEADER )
94
94
@headers . add ( match [ 1 ] , match [ 2 ] )
95
95
else
96
- raise BadHeader , "Could not parse header: #{ line . dump } "
96
+ raise BadHeader , "Could not parse header: #{ line . inspect } "
97
97
end
98
98
end
99
99
end
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ def read_headers
240
240
if match = line . match ( HEADER )
241
241
fields << [ match [ 1 ] , match [ 2 ] ]
242
242
else
243
- raise BadHeader , "Could not parse header: #{ line . dump } "
243
+ raise BadHeader , "Could not parse header: #{ line . inspect } "
244
244
end
245
245
end
246
246
@@ -445,7 +445,7 @@ def extract_content_length(headers)
445
445
if content_length =~ VALID_CONTENT_LENGTH
446
446
yield Integer ( content_length , 10 )
447
447
else
448
- raise BadRequest , "Invalid content length: #{ content_length . dump } "
448
+ raise BadRequest , "Invalid content length: #{ content_length . inspect } "
449
449
end
450
450
end
451
451
end
You can’t perform that action at this time.
0 commit comments