No http follow, more debug info on errors

This commit is contained in:
Kyle Drake 2017-01-13 20:06:59 +00:00
parent ea467c1eef
commit 7198e788d1

View file

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