mirror of
https://github.com/neocities/neocities.git
synced 2025-07-19 17:16:05 +02:00
follow redirects
This commit is contained in:
parent
749f2fd5e0
commit
f92d6c6139
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue