Skip to content

Commit

Permalink
Fix test_http_parser with ruby-head
Browse files Browse the repository at this point in the history
`URI::REGEXP` is gone but the same value is accessible as
`URI::RFC2396_REGEXP`.
  • Loading branch information
byroot committed Jul 23, 2024
1 parent ec75abc commit 6fe20ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/test_http_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def test_absolute_uri_w_user
# since Mongrel supported anything URI.parse supported, we're stuck
# supporting everything URI.parse supports
def test_absolute_uri_uri_parse
"#{URI::REGEXP::PATTERN::UNRESERVED};:&=+$,".split(//).each do |char|
"#{URI::RFC2396_REGEXP::PATTERN::UNRESERVED};:&=+$,".split(//).each do |char|
parser = HttpParser.new
req = parser.env
http = +"GET http://#{char}@example.com/ HTTP/1.0\r\n\r\n"
Expand Down

0 comments on commit 6fe20ec

Please sign in to comment.