Commit 1bc839c3 authored by Boris Bügling's avatar Boris Bügling

Support other 30x status codes.

parent 202ccbeb
......@@ -238,7 +238,7 @@ module Pod
resp = ::REST.get(homepage)
end
if resp.status_code == 301
if [301, 302, 303, 307, 308].include? resp.status_code
homepage = resp.headers['location'].first
else
break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment