diff options
author | 2024-04-06 18:07:45 +0200 | |
---|---|---|
committer | 2024-04-06 18:07:45 +0200 | |
commit | 4602f4f475d938202de6c65214b321d41d0a93e8 (patch) | |
tree | 0558075d2057606a8bcc91f2e496aa3b3d08cd97 /lib | |
parent | b3ac1d176ce9f4778986190702216f0f25918a70 (diff) | |
download | rss-bridge-4602f4f475d938202de6c65214b321d41d0a93e8.tar.gz rss-bridge-4602f4f475d938202de6c65214b321d41d0a93e8.tar.zst rss-bridge-4602f4f475d938202de6c65214b321d41d0a93e8.zip |
tweaks (#4065)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/BridgeAbstract.php | 9 | ||||
-rw-r--r-- | lib/contents.php | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/BridgeAbstract.php b/lib/BridgeAbstract.php index 1456e1c3..2467dec6 100644 --- a/lib/BridgeAbstract.php +++ b/lib/BridgeAbstract.php @@ -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 = []; diff --git a/lib/contents.php b/lib/contents.php index 43db8c03..ba6dd531 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -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); |