Merge pull request #117 from PikachuEXE/replace-deprecated-method-usage

Replace deprecated method usage
This commit is contained in:
Stephen Sykes 2020-07-23 11:23:04 +03:00 committed by GitHub
commit c57b07dc85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -9,3 +9,4 @@ rvm:
- 2.4
- 2.5
- 2.6
- 2.7

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