default https for cache purging and URIs

This commit is contained in:
Kyle Drake 2017-01-06 00:03:30 -06:00
parent f92d6c6139
commit f796fdf9a8
3 changed files with 5 additions and 5 deletions

View file

@ -20,11 +20,11 @@ class DeleteCacheWorker
path = '/' + path if path[0] != '/'
url = Addressable::URI.encode_component(
"http://#{proxy_ip}/:cache/purge#{path}",
"https://#{proxy_ip}/:cache/purge#{path}",
Addressable::URI::CharacterClasses::QUERY
)
HTTP.follow.timeout(read: 10, write: 10, connect: 2).
HTTP.timeout(read: 10, write: 10, connect: 2).
headers(host: URI::encode("#{username}.neocities.org")).
get(url)
end