From a1ff8970f92f37e58264e6d4f88799681f9ecdce Mon Sep 17 00:00:00 2001 From: MarkusGaertner Date: Fri, 23 Apr 2021 10:03:26 +0200 Subject: [PATCH] add UserAgent "CacheWarmer" --- Core/CacheWarmer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/CacheWarmer.php b/Core/CacheWarmer.php index 9154396..73c9eda 100644 --- a/Core/CacheWarmer.php +++ b/Core/CacheWarmer.php @@ -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);