Skip to content

Commit

Permalink
bump timeout to 10s, max redirects to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Jan 12, 2025
1 parent 9e82277 commit 107b2b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Clients/IbericodeVatRatesClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public function fetch(): array

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_TIMEOUT, 6);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_MAXREDIRS, 2);
curl_setopt($ch, CURLOPT_MAXREDIRS, 3);
$body = (string) curl_exec($ch);
$status = (int) curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
Expand Down

0 comments on commit 107b2b4

Please sign in to comment.