mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 23:27:32 +02:00
feat(http-client): add http retry count to config (#3887)
This commit is contained in:
@@ -38,6 +38,7 @@ function getContents(
|
||||
$config = [
|
||||
'useragent' => Configuration::getConfig('http', 'useragent'),
|
||||
'timeout' => Configuration::getConfig('http', 'timeout'),
|
||||
'retries' => Configuration::getConfig('http', 'retries'),
|
||||
'headers' => array_merge($defaultHttpHeaders, $httpHeadersNormalized),
|
||||
'curl_options' => $curlOptions,
|
||||
];
|
||||
@@ -71,7 +72,7 @@ function getContents(
|
||||
// Ignore invalid 'Last-Modified' HTTP header value
|
||||
}
|
||||
}
|
||||
// todo: to be nice nice citizen we should also check for Etag
|
||||
// todo: We should also check for Etag
|
||||
}
|
||||
|
||||
$response = $httpClient->request($url, $config);
|
||||
|
Reference in New Issue
Block a user