Skip to content

Commit 64f026c

Browse files
committed
URI::DEFAULT_PARSER.escape is obsoleted. We should use URI::RFC2396_PARSER.escape explicitly
1 parent 16adf53 commit 64f026c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rubygems/uri.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def self.parse!(uri)
3030
begin
3131
Gem::URI.parse(uri)
3232
rescue Gem::URI::InvalidURIError
33-
Gem::URI.parse(Gem::URI::DEFAULT_PARSER.escape(uri))
33+
Gem::URI.parse(Gem::URI::RFC2396_PARSER.escape(uri))
3434
end
3535
end
3636

0 commit comments

Comments
 (0)