mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-12 03:24:01 +02:00
refactor: return proper response object (#4169)
This commit is contained in:
@@ -31,7 +31,7 @@ class FDroidBridge extends BridgeAbstract
|
||||
CURLOPT_NOBODY => true,
|
||||
];
|
||||
$reponse = getContents($url, [], $curlOptions, true);
|
||||
$lastModified = $reponse['headers']['last-modified'][0] ?? null;
|
||||
$lastModified = $reponse->getHeader('last-modified');
|
||||
$timestamp = strtotime($lastModified ?? 'today');
|
||||
return $timestamp;
|
||||
}
|
||||
|
Reference in New Issue
Block a user