Make curl follow redirects (#13051)

This commit is contained in:
martinberg
2021-07-17 17:21:01 +02:00
committed by GitHub
parent 3d0c1e63b7
commit d49e6d7acc

View File

@@ -1254,6 +1254,7 @@ function oxidized_reload_nodes()
curl_setopt($ch, CURLOPT_TIMEOUT_MS, 5000);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_exec($ch);
curl_close($ch);