Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Proper redirects handling.

  • Loading branch information...
commit 08d3e9a0d12d4fe109031dc8dfdf63c58f30e246 1 parent 853cd08
@iced iced authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  VERSION
  2. +1 −1  lib/iron_worker_ng/fetcher.rb
View
2  VERSION
@@ -1 +1 @@
-0.7.2
+0.7.3
View
2  lib/iron_worker_ng/fetcher.rb
@@ -18,7 +18,7 @@ def self.fetch(url, to_file = false)
response = http.request(Net::HTTP::Get.new(uri.request_uri))
if response.kind_of?(Net::HTTPRedirection)
- IronWorkerNG::Fetcher.fetch(response['location'], to_file)
+ return IronWorkerNG::Fetcher.fetch(response['location'], to_file)
end
if to_file
Please sign in to comment.
Something went wrong with that request. Please try again.