Skip to content

Commit

Permalink
URI.for is not supported on old rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
c960657 committed Oct 13, 2023
1 parent 0524795 commit 27cc46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http/cookie/uri_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def parse(uri)
# Not an absolute HTTP/HTTPS URI
return URI::DEFAULT_PARSER.parse(uri) unless m

URI.for(
URI.scheme_list[m['scheme'].upcase].new(
m['scheme'],
m['userinfo'],
m['host'],
Expand Down

0 comments on commit 27cc46c

Please sign in to comment.