[Pkg-owncloud-commits] [php-sabredav] 214/275: If pre-conditions check fails, send response

David Prévot taffit at moszumanska.debian.org
Thu Sep 25 14:56:10 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 7820f9e14008278c0fe09bc3065a01b13fa8532f
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 97c8871..cad6a25 100644
--- a/lib/DAV/Server.php
+++ b/lib/DAV/Server.php
@@ -458,6 +458,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