mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +00:00
URI.for is not supported on old rubies
This commit is contained in:
parent
052479536c
commit
27cc46c1d7
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class HTTP::Cookie::URIParser
|
||||||
# Not an absolute HTTP/HTTPS URI
|
# Not an absolute HTTP/HTTPS URI
|
||||||
return URI::DEFAULT_PARSER.parse(uri) unless m
|
return URI::DEFAULT_PARSER.parse(uri) unless m
|
||||||
|
|
||||||
URI.for(
|
URI.scheme_list[m['scheme'].upcase].new(
|
||||||
m['scheme'],
|
m['scheme'],
|
||||||
m['userinfo'],
|
m['userinfo'],
|
||||||
m['host'],
|
m['host'],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue