From ab9ba8d64be5a867e83e4e4bc001ea481d14f3d2 Mon Sep 17 00:00:00 2001 From: Wolfgang Date: Tue, 5 Aug 2025 22:43:37 +0200 Subject: [PATCH] fix: don't set if-modified-since header when discover feeds Signed-off-by: Wolfgang --- CHANGELOG.md | 1 + src/FeedIo/Explorer.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30fd7779..bef6cb0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Add logic to set the node's link from the element when isPermaLink="true" and no link is present. (#12) - Do no longer default to 1800-01-01 as date for fetching feeds (#15) +- don't set if-modified-since header when discover feeds (#19) ### Fixed - Analysis of relative links for the Atom feed (#10) diff --git a/src/FeedIo/Explorer.php b/src/FeedIo/Explorer.php index 9d9846a9..f854ad70 100644 --- a/src/FeedIo/Explorer.php +++ b/src/FeedIo/Explorer.php @@ -26,7 +26,7 @@ public function __construct( public function discover(string $url): array { $this->logger->info("discover feeds from {$url}"); - $stream = $this->client->getResponse($url, new DateTime('@0')); + $stream = $this->client->getResponse($url, null); $internalErrors = libxml_use_internal_errors(true); $feeds = $this->extractFeeds($stream->getBody(), $url);