* Replace URI.escape with ::URI::DEFAULT_PARSER.escape

Similar code change
https://github.com/mongodb/mongo-ruby-driver/pull/1614/files
This commit is contained in:
PikachuEXE 2020-06-18 15:46:13 +08:00
parent 099c5e4233
commit 172b674a40

View File

@ -282,7 +282,7 @@ class FastImage
begin
URI(location)
rescue URI::InvalidURIError
URI.escape(location)
::URI::DEFAULT_PARSER.escape(location)
else
location
end