From ed910dd0374eff8f4889f50e8e2372710b80f14b Mon Sep 17 00:00:00 2001 From: NeilJ Date: Wed, 7 Jul 2021 10:01:51 +0100 Subject: [PATCH] fix: follow any redirects when downloading CSV file --- src/CountryPlugin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CountryPlugin.php b/src/CountryPlugin.php index 5b29399..32bc17a 100644 --- a/src/CountryPlugin.php +++ b/src/CountryPlugin.php @@ -104,6 +104,7 @@ protected static function downloadFile($filename, $url) CURLOPT_FILE => $fileHandle, CURLOPT_TIMEOUT => 600, CURLOPT_URL => $url, + CURLOPT_FOLLOWLOCATION => true, ]; $curl = curl_init();