add UserAgent "CacheWarmer"

This commit is contained in:
Markus Gärtner 2021-04-23 10:03:26 +02:00
bovenliggende 13a5758ad4
commit a1ff8970f9

Bestand weergeven

@ -55,6 +55,7 @@ class CacheWarmer
curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($oCurl, CURLOPT_CONNECTTIMEOUT, 25);
curl_setopt($oCurl, CURLOPT_HEADER, true);
curl_setopt($oCurl, CURLOPT_USERAGENT, 'CacheWarmer');
$sUsername = Registry::getConfig()->getShopConfVar('psCacheWarmerUser');
$sPassword = Registry::getConfig()->getShopConfVar('psCacheWarmerPass');
curl_setopt($oCurl, CURLOPT_USERPWD, $sUsername . ":" . $sPassword);