LetsEncryptWorker: Follow redirects for verification

This commit is contained in:
Kyle Drake 2017-03-04 17:22:55 +00:00
parent f3ab1a6f24
commit cdcc65e951

View file

@ -62,7 +62,7 @@ class LetsEncryptWorker
puts "testing #{challenge_url}"
begin
res = HTTP.timeout(:global, write: 5, connect: 10, read: 10).get(challenge_url)
res = HTTP.timeout(:global, write: 5, connect: 10, read: 10).follow.get(challenge_url)
rescue => e
puts e.inspect
puts "error with #{challenge_url}"