Skip to content

Commit

Permalink
Merge pull request #22 from JKingweb/patch-2
Browse files Browse the repository at this point in the history
Fix unintended API change
  • Loading branch information
nicolus committed Sep 15, 2020
2 parents d0d8502 + cb6af68 commit e6bfe8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PicoFeed/Client/Client.php
Expand Up @@ -287,8 +287,8 @@ protected function handleNotModifiedResponse(ResponseInterface $response)
$this->is_modified = false;
} elseif ($response->getStatusCode() == 200) {
$this->is_modified = $this->hasBeenModified($response, $this->etag, $this->last_modified);
$this->etag = $response->getHeader('ETag')[0] ?? null;
$this->last_modified = $response->getHeader('Last-Modified')[0] ?? null;
$this->etag = $response->getHeader('ETag')[0] ?? '';
$this->last_modified = $response->getHeader('Last-Modified')[0] ?? '';
}

if ($this->is_modified === false) {
Expand Down

0 comments on commit e6bfe8d

Please sign in to comment.