Skip to content

Commit ab8c538

Browse files
committed
rstrip on Ruby 3 does not accept an argument.
1 parent d2fd247 commit ab8c538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/protocol/http1/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def read_headers
502502
if match = line.match(HEADER)
503503
# The RFCs require stripping of optional whitespace, but only at the end of the field value:
504504
if value = match[2]
505-
value.rstrip!(" \t")
505+
value.rstrip!
506506
else
507507
value = ""
508508
end

0 commit comments

Comments
 (0)