Skip to content

Commit

Permalink
fix: follow any redirects when downloading CSV file
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilJ247 committed Jul 7, 2021
1 parent 2b42908 commit ed910dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CountryPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ed910dd

Please sign in to comment.