1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 00:27:27 +02:00

test: add feed item test (#3709)

* test: add feed item test

also some refactor

* yup

* yup
This commit is contained in:
Dag
2023-09-25 22:32:15 +02:00
committed by GitHub
parent cd30c25b08
commit f421c45b21
10 changed files with 98 additions and 81 deletions

View File

@@ -15,6 +15,7 @@ function getContents(
bool $returnFull = false
) {
$httpClient = RssBridge::getHttpClient();
$cache = RssBridge::getCache();
$httpHeadersNormalized = [];
foreach ($httpHeaders as $httpHeader) {
@@ -51,7 +52,6 @@ function getContents(
$config['proxy'] = Configuration::getConfig('proxy', 'url');
}
$cache = RssBridge::getCache();
$cacheKey = 'server_' . $url;
/** @var Response $cachedResponse */