Skip to content

Commit 107b2b4

Browse files
bump timeout to 10s, max redirects to 3
1 parent 9e82277 commit 107b2b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Clients/IbericodeVatRatesClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ public function fetch(): array
1919

2020
$ch = curl_init();
2121
curl_setopt($ch, CURLOPT_URL, $url);
22-
curl_setopt($ch, CURLOPT_TIMEOUT, 6);
22+
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
2323
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
2424
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
25-
curl_setopt($ch, CURLOPT_MAXREDIRS, 2);
25+
curl_setopt($ch, CURLOPT_MAXREDIRS, 3);
2626
$body = (string) curl_exec($ch);
2727
$status = (int) curl_getinfo($ch, CURLINFO_HTTP_CODE);
2828
curl_close($ch);

0 commit comments

Comments
 (0)