Merge pull request #6 from gaertnermarkus/master

add UserAgent "CacheWarmer"
This commit is contained in:
Tobias Merkl 2021-04-23 13:08:23 +02:00 gecommit door GitHub
bovenliggende 87fc962739 a1ff8970f9
commit ba687d58e6
Geen bekende sleutel gevonden voor deze handtekening in de database
GPG sleutel-ID: 4AEE18F83AFDEB23

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);