[Pkg-owncloud-commits] [php-sabredav] 208/275: If pre-conditions check fails, send response
David Prévot
taffit at moszumanska.debian.org
Thu Sep 25 14:56:09 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit feb25226de3c68e38ddfcbc3c29358a2145def2e
Author: Trevor North <trevor at freedisc.co.uk>
Date: Mon Sep 8 15:46:41 2014 +0100
If pre-conditions check fails, send response
If the pre-conditions check doesn't throw an exception and instead updates the response and returns false then that response should be sent.
This fixes an issue encountered using the browser plugin whereby if the request had an If-Modified-Since header a blank page was served instead of the expected 304.
---
lib/DAV/Server.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/DAV/Server.php b/lib/DAV/Server.php
index 0779d65..18e78ad 100644
--- a/lib/DAV/Server.php
+++ b/lib/DAV/Server.php
@@ -462,6 +462,7 @@ class Server extends EventEmitter {
$this->transactionType = strtolower($method);
if (!$this->checkPreconditions($request, $response)) {
+ $this->sapi->sendResponse($response);
return;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list