fastimage 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fastimage.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74fc8be5d9ead8961a52aa89c0df0ff8a007f0c7
4
- data.tar.gz: caad48d5e5120cb0e4ee877b0511cb62e4ec3b95
3
+ metadata.gz: e956eb7172b275c005a02bed97037ab008774579
4
+ data.tar.gz: cccc887b76405eed9d65e239cad4325eaf4dc437
5
5
  SHA512:
6
- metadata.gz: 5e72700677ce5ae10030abb6a8083025437997f44cb1c854ec6d9ca951363e5dd324e0d7c80eae0b35fbafe55592d30e7fad78aae6acf7a90496f11b903ed5a8
7
- data.tar.gz: 97fdb59e67a882064d5989e0d0c17ee87ef35b133c0fb93183e733c487fb766fc7cb9411421a5fc5165edb616516ff70b98ea627c7887b261b16384077c03bee
6
+ metadata.gz: bf104614fb388b78077820a31b50c713a9a1c6579489758e7331f0247354e9347e27db7f672af36982d0faba4c4e4f44731583f4ae4d6d1eae8ec55657c6feaf
7
+ data.tar.gz: 0d14f8f2ae9c597034ecc146f01884e33c3101ff2575679ac101bb3964c8af29f700dec14c4988955bde3600e6afb661a2ac8b62a633905cbb13175c19697035
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastimage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Sykes