From af2bbd68fd96ac337269737beb1fd13ed3893e1f Mon Sep 17 00:00:00 2001 From: Magefan - e-Commerce solutions you can trust Date: Mon, 16 Jun 2025 11:14:04 +0300 Subject: [PATCH] Update AdminNotificationFeed.php --- Model/AdminNotificationFeed.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Model/AdminNotificationFeed.php b/Model/AdminNotificationFeed.php index f36532b..311a160 100644 --- a/Model/AdminNotificationFeed.php +++ b/Model/AdminNotificationFeed.php @@ -323,11 +323,11 @@ protected function parentGetFeedData() $curl = $this->curlFactory->create(); $curl->setOptions( [ - 'timeout' => 2, - 'useragent' => $this->productMetadata->getName() + CURLOPT_TIMEOUT => 2, + CURLOPT_USERAGENT => $this->productMetadata->getName() . '/' . $this->productMetadata->getVersion() . ' (' . $this->productMetadata->getEdition() . ')', - 'referer' => $this->urlBuilder->getUrl('*/*/*') + CURLOPT_REFERER => $this->urlBuilder->getUrl('*/*/*') ] ); $curl->write('GET', $this->getFeedUrl(), '1.0');