fastimage 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastimage.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e956eb7172b275c005a02bed97037ab008774579
|
4
|
+
data.tar.gz: cccc887b76405eed9d65e239cad4325eaf4dc437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf104614fb388b78077820a31b50c713a9a1c6579489758e7331f0247354e9347e27db7f672af36982d0faba4c4e4f44731583f4ae4d6d1eae8ec55657c6feaf
|
7
|
+
data.tar.gz: 0d14f8f2ae9c597034ecc146f01884e33c3101ff2575679ac101bb3964c8af29f700dec14c4988955bde3600e6afb661a2ac8b62a633905cbb13175c19697035
|
data/lib/fastimage.rb
CHANGED
@@ -250,7 +250,7 @@ class FastImage
|
|
250
250
|
if res.is_a?(Net::HTTPRedirection) && @redirect_count < 4
|
251
251
|
@redirect_count += 1
|
252
252
|
begin
|
253
|
-
@parsed_uri = URI.join(@parsed_uri, res['Location'])
|
253
|
+
@parsed_uri = URI.join(@parsed_uri, URI.escape(res['Location']))
|
254
254
|
rescue URI::InvalidURIError
|
255
255
|
else
|
256
256
|
fetch_using_http_from_parsed_uri
|