Update temp_file.

This commit is contained in:
BoHung Chiu 2022-09-10 00:07:15 +08:00
parent 2b43026c29
commit 300a4a8cba
1 changed files with 1 additions and 12 deletions

View File

@ -75,18 +75,7 @@ if RUBY_VERSION.to_f > 2.1
end end
def self.parse(uri) def self.parse(uri)
uri = uri.strip uri = uri.strip
scheme, userinfo, host, port, self::DEFAULT_PARSER.parse(uri)
registry, path, opaque, query, fragment = self.split(uri)
if scheme && self.scheme_list.include?(scheme.upcase)
self.scheme_list[scheme.upcase].new(scheme, userinfo, host, port,
registry, path, opaque, query,
fragment, self)
else
Generic.new(scheme, userinfo, host, port,
registry, path, opaque, query,
fragment, self)
end
end end
class <<self class <<self
alias_method :encode, :escape alias_method :encode, :escape