Skip to content

Commit ad28d91

Browse files
wofferlGrotax
authored andcommitted
fix: don't set if-modified-since header when discover feeds
Signed-off-by: Wolfgang <[email protected]>
1 parent b079f6b commit ad28d91

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111
- Add logic to set the node's link from the <guid> element when isPermaLink="true" and no link is present. (#12)
1212
- Do no longer default to 1800-01-01 as date for fetching feeds (#15)
13+
- don't set if-modified-since header when discover feeds (#19)
1314

1415
### Fixed
1516
- Analysis of relative links for the Atom feed (#10)

src/FeedIo/Explorer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(
2626
public function discover(string $url): array
2727
{
2828
$this->logger->info("discover feeds from {$url}");
29-
$stream = $this->client->getResponse($url, new DateTime('@0'));
29+
$stream = $this->client->getResponse($url, null);
3030

3131
$internalErrors = libxml_use_internal_errors(true);
3232
$feeds = $this->extractFeeds($stream->getBody(), $url);

0 commit comments

Comments
 (0)