Skip to content
This repository
Browse code

Proper redirects handling.

  • Loading branch information...
commit 08d3e9a0d12d4fe109031dc8dfdf63c58f30e246 1 parent 853cd08
Andrew Kirilenko iced authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  VERSION
  2. +1 1  lib/iron_worker_ng/fetcher.rb
2  VERSION
... ... @@ -1 +1 @@
1   -0.7.2
  1 +0.7.3
2  lib/iron_worker_ng/fetcher.rb
@@ -18,7 +18,7 @@ def self.fetch(url, to_file = false)
18 18 response = http.request(Net::HTTP::Get.new(uri.request_uri))
19 19
20 20 if response.kind_of?(Net::HTTPRedirection)
21   - IronWorkerNG::Fetcher.fetch(response['location'], to_file)
  21 + return IronWorkerNG::Fetcher.fetch(response['location'], to_file)
22 22 end
23 23
24 24 if to_file

0 comments on commit 08d3e9a

Please sign in to comment.
Something went wrong with that request. Please try again.