aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/Http/Dispatcher.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-05-11 16:18:01 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2020-05-13 08:11:24 +0200
commit12fa748c49773d57f03052ef3cee4c72a2d3cdcc (patch)
tree3f5b8ba180d5b23ead240d6acd54cdc05f689364 /lib/private/AppFramework/Http/Dispatcher.php
parentab2df70e3ac0d8216c1986cc64aff83c215f1add (diff)
downloadnextcloud-server-12fa748c49773d57f03052ef3cee4c72a2d3cdcc.tar.gz
nextcloud-server-12fa748c49773d57f03052ef3cee4c72a2d3cdcc.zip
Move the notmodified check to middleware where it belongs
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/AppFramework/Http/Dispatcher.php')
-rw-r--r--lib/private/AppFramework/Http/Dispatcher.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/AppFramework/Http/Dispatcher.php b/lib/private/AppFramework/Http/Dispatcher.php
index 629905e5da8..3892bb667f0 100644
--- a/lib/private/AppFramework/Http/Dispatcher.php
+++ b/lib/private/AppFramework/Http/Dispatcher.php
@@ -116,8 +116,7 @@ class Dispatcher {
$controller, $methodName, $response);
// depending on the cache object the headers need to be changed
- $out[0] = $this->protocol->getStatusHeader($response->getStatus(),
- $response->getLastModified(), $response->getETag());
+ $out[0] = $this->protocol->getStatusHeader($response->getStatus());
$out[1] = array_merge($response->getHeaders());
$out[2] = $response->getCookies();
$out[3] = $this->middlewareDispatcher->beforeOutput(