1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-07 00:56:34 +02:00
This commit is contained in:
Dag
2024-04-06 18:07:45 +02:00
committed by GitHub
parent b3ac1d176c
commit 4602f4f475
6 changed files with 24 additions and 27 deletions

View File

@@ -6,8 +6,17 @@ abstract class BridgeAbstract
const URI = '';
const DONATION_URI = '';
const DESCRIPTION = 'No description provided';
/**
* Preferably a github username
*/
const MAINTAINER = 'No maintainer';
/**
* Cache TTL in seconds
*/
const CACHE_TIMEOUT = 3600;
const CONFIGURATION = [];
const PARAMETERS = [];
const TEST_DETECT_PARAMETERS = [];

View File

@@ -17,6 +17,8 @@ function getContents(
$httpClient = RssBridge::getHttpClient();
$cache = RssBridge::getCache();
// TODO: consider url validation at this point
$httpHeadersNormalized = [];
foreach ($httpHeaders as $httpHeader) {
$parts = explode(':', $httpHeader);