mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-29 06:45:47 +00:00
[CybernewsBridge] revert header
This commit is contained in:
parent
da9b9d55ad
commit
7eddceaa14
@ -11,12 +11,7 @@ class CybernewsBridge extends BridgeAbstract
|
||||
|
||||
public function collectData()
|
||||
{
|
||||
$header = [
|
||||
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36'
|
||||
];
|
||||
|
||||
$sitemapUrl = self::URI . '/news-sitemap.xml';
|
||||
$sitemapXml = getContents($sitemapUrl, $header);
|
||||
$sitemapXml = getContents(self::URI . '/news-sitemap.xml');
|
||||
if (!$sitemapXml) {
|
||||
throwServerException('Could not retrieve Cybernews sitemap');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user