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

@ -22,7 +22,7 @@ class PurgeCacheWorker
retry_encoded = false
begin
HTTP.timeout(read: 10, write: 10, connect: 2).
HTTP.follow.timeout(read: 10, write: 10, connect: 2).
headers(host: URI::encode("#{username}.neocities.org"), cache_purge: '1').
head(url)
rescue URI::InvalidURIError