Author: ts
Date: Tue Sep 25 06:30:09 2007
New Revision: 6257

Log:
- Corrected intersection of property storages.
- Added an "Allow" header.
# This is test wise, seen in Wireshark session.

Modified:
    trunk/Webdav/src/backend/simple.php

Modified: trunk/Webdav/src/backend/simple.php
==============================================================================
--- trunk/Webdav/src/backend/simple.php [iso-8859-1] (original)
+++ trunk/Webdav/src/backend/simple.php [iso-8859-1] Tue Sep 25 06:30:09 2007
@@ -365,7 +365,7 @@
 
             // ... and diff the with the requested properties.
             $notFound = $request->prop->diff( $nodeProperties );
-            $valid = $request->prop->intersect( $nodeProperties );
+            $valid = $nodeProperties->intersect( $request->prop );
 
             $nodeResponses = array();
             // Add propstat sub response for valid responses
@@ -1036,7 +1036,9 @@
      */
     public function options( ezcWebdavOptionsRequest $request )
     {
-        return new ezcWebdavOptionsResponse();
+        $res = new ezcWebdavOptionsResponse( '1' );
+        $res->setHeader( 'Allow', 'GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, 
DELETE, COPY, MOVE, MKCOL, PUT' );
+        return $res;
     }
 }
 


-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to