URI.for is not supported on old rubies

This commit is contained in:
Christian Schmidt 2023-10-13 07:19:11 +02:00
parent 052479536c
commit 27cc46c1d7

View file

@ -23,7 +23,7 @@ class HTTP::Cookie::URIParser
# 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'],