Skip to content

Commit

Permalink
fix: replaced more old download code
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsreichenbach committed May 2, 2024
1 parent ea8f24e commit e13a63c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ protected function getRemoteEditionData($editionId)
*/
protected function download($remoteEditionData)
{
$ch = curl_init(trim($this->_baseUrlApi, '/') . '/' . 'download' . '?' . http_build_query(array(
'request_id' => $remoteEditionData['request_id'],
$ch = curl_init(trim($this->_baseUrlApi, '/') . '/' . 'geoip/databases/' . $remoteEditionData['edition_id'] . '/download' . '?' . http_build_query(array(
'date' => date_create($remoteEditionData['date'])->format('Ymd'),
'suffix' => 'tar.gz'
)));
$fh = fopen($this->getArchiveFile($remoteEditionData), 'wb');
curl_setopt_array($ch, array(
Expand Down

0 comments on commit e13a63c

Please sign in to comment.