diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-06-23 15:30:43 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-06-23 15:30:43 +0200 |
commit | 6d5cfe0c66f7010d552f0aa234a13c2e91a933bd (patch) | |
tree | a3703e699e9d81ed92019a730ae4f436e3ffb0a2 /lib/private/AppFramework | |
parent | 770881d5d66de36bb04fab8a2b9fdcae658150fa (diff) | |
download | nextcloud-server-6d5cfe0c66f7010d552f0aa234a13c2e91a933bd.tar.gz nextcloud-server-6d5cfe0c66f7010d552f0aa234a13c2e91a933bd.zip |
Move DateTime::RFC2822 to DateTimeInterface::2822
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r-- | lib/private/AppFramework/Middleware/NotModifiedMiddleware.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Middleware/NotModifiedMiddleware.php b/lib/private/AppFramework/Middleware/NotModifiedMiddleware.php index dd3f202b6c1..4ebdf10f403 100644 --- a/lib/private/AppFramework/Middleware/NotModifiedMiddleware.php +++ b/lib/private/AppFramework/Middleware/NotModifiedMiddleware.php @@ -46,7 +46,7 @@ class NotModifiedMiddleware extends Middleware { } $modifiedSinceHeader = $this->request->getHeader('IF_MODIFIED_SINCE'); - if ($modifiedSinceHeader !== '' && $response->getLastModified() !== null && trim($modifiedSinceHeader) === $response->getLastModified()->format(\DateTime::RFC2822)) { + if ($modifiedSinceHeader !== '' && $response->getLastModified() !== null && trim($modifiedSinceHeader) === $response->getLastModified()->format(\DateTimeInterface::RFC2822)) { $response->setStatus(Http::STATUS_NOT_MODIFIED); return $response; } |