Update temp_file.
This commit is contained in:
parent
2b43026c29
commit
300a4a8cba
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue