follow redirects

This commit is contained in:
Kyle Drake 2017-01-05 16:01:35 -06:00
parent 749f2fd5e0
commit f92d6c6139
3 changed files with 4 additions and 3 deletions

View file

@ -24,7 +24,7 @@ class DeleteCacheWorker
Addressable::URI::CharacterClasses::QUERY
)
HTTP.timeout(read: 10, write: 10, connect: 2).
HTTP.follow.timeout(read: 10, write: 10, connect: 2).
headers(host: URI::encode("#{username}.neocities.org")).
get(url)
end