0
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-28 22:35:49 +00:00

[CybernewsBridge] revert header

This commit is contained in:
tillcash 2025-08-10 16:47:39 +05:30 committed by GitHub
parent da9b9d55ad
commit 7eddceaa14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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');
}