diff options
author | Chris Noxz <chris@noxz.tech> | 2020-04-28 18:25:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 18:25:34 +0200 |
commit | 81d2407e6cc6a251a81751ef60fcecca0ef58119 (patch) | |
tree | 731e5dc342ca8392e81d842cdb1984efd5348367 /lib/Fetcher/Client/LegacyGuzzleResponse.php | |
parent | 05651854f573b166133230d2c7cd8afc1876834c (diff) |
fix 'If-Modified-Since' causing BAD REQUEST (#684)
fix 'If-Modified-Since' causing BAD REQUEST
Signed-off-by: Chris Noxz <chris@noxz.tech>
Co-authored-by: kesselb <mail@danielkesselberg.de>
Diffstat (limited to 'lib/Fetcher/Client/LegacyGuzzleResponse.php')
-rw-r--r-- | lib/Fetcher/Client/LegacyGuzzleResponse.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Fetcher/Client/LegacyGuzzleResponse.php b/lib/Fetcher/Client/LegacyGuzzleResponse.php index 385ebe7e8..f8d6d7601 100644 --- a/lib/Fetcher/Client/LegacyGuzzleResponse.php +++ b/lib/Fetcher/Client/LegacyGuzzleResponse.php @@ -57,7 +57,7 @@ class LegacyGuzzleResponse implements ResponseInterface { if ($this->response->hasHeader(static::HTTP_LAST_MODIFIED)) { $lastModified = \DateTime::createFromFormat( - \DateTime::RFC2822, + 'D, d M Y H:i:s e', $this->getHeader(static::HTTP_LAST_MODIFIED) ); |