mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
No http follow, more debug info on errors
This commit is contained in:
parent
ea467c1eef
commit
7198e788d1
1 changed files with 3 additions and 2 deletions
|
@ -62,8 +62,9 @@ class LetsEncryptWorker
|
||||||
puts "testing #{challenge_url}"
|
puts "testing #{challenge_url}"
|
||||||
|
|
||||||
begin
|
begin
|
||||||
res = HTTP.timeout(:global, write: 5, connect: 10, read: 10).follow.get(challenge_url)
|
res = HTTP.timeout(:global, write: 5, connect: 10, read: 10).get(challenge_url)
|
||||||
rescue
|
rescue => e
|
||||||
|
puts e.inspect
|
||||||
puts "error with #{challenge_url}"
|
puts "error with #{challenge_url}"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue