diff options
Diffstat (limited to 'lib/Fetcher')
-rw-r--r-- | lib/Fetcher/Fetcher.php | 7 | ||||
-rw-r--r-- | lib/Fetcher/IFeedFetcher.php | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/Fetcher/Fetcher.php b/lib/Fetcher/Fetcher.php index 8c755bc85..7d4690a6e 100644 --- a/lib/Fetcher/Fetcher.php +++ b/lib/Fetcher/Fetcher.php @@ -47,6 +47,7 @@ class Fetcher * @param bool $fullTextEnabled If true use a scraper to download the full article * @param string|null $user if given, basic auth is set for this feed * @param string|null $password if given, basic auth is set for this feed. Ignored if user is empty + * @param string|null $httpLastModified if given, will be used when sending a request to servers * * @throws ReadErrorException if FeedIO fails * @return array an array containing the new feed and its items, first @@ -56,7 +57,8 @@ class Fetcher string $url, bool $fullTextEnabled = false, ?string $user = null, - ?string $password = null + ?string $password = null, + ?string $httpLastModified = null ): array { foreach ($this->fetchers as $fetcher) { if (!$fetcher->canHandle($url)) { @@ -66,7 +68,8 @@ class Fetcher $url, $fullTextEnabled, $user, - $password + $password, + $httpLastModified ); } diff --git a/lib/Fetcher/IFeedFetcher.php b/lib/Fetcher/IFeedFetcher.php index 8729858b5..7f2bbe31c 100644 --- a/lib/Fetcher/IFeedFetcher.php +++ b/lib/Fetcher/IFeedFetcher.php @@ -27,6 +27,7 @@ interface IFeedFetcher * @param bool $fullTextEnabled If true use a scraper to download the full article * @param string|null $user if given, basic auth is set for this feed * @param string|null $password if given, basic auth is set for this feed. Ignored if user is empty + * @param string|null $httpLastModified if given, will be used when sending a request to servers * * @return array<Feed, Item[]> an array containing the new feed and its items, first * element being the Feed and second element being an array of Items |