Update temp_file.
This commit is contained in:
parent
2b43026c29
commit
300a4a8cba
|
@ -75,18 +75,7 @@ if RUBY_VERSION.to_f > 2.1
|
|||
end
|
||||
def self.parse(uri)
|
||||
uri = uri.strip
|
||||
scheme, userinfo, host, port,
|
||||
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
|
||||
self::DEFAULT_PARSER.parse(uri)
|
||||
end
|
||||
class <<self
|
||||
alias_method :encode, :escape
|
||||
|
|
Loading…
Reference in New Issue