Author: ts
Date: Tue Sep 25 16:20:23 2007
New Revision: 6270

Log:
- Fixed problem in creation of OPTIONS response.

Modified:
    trunk/Webdav/src/response/options.php
    trunk/Webdav/tests/clients/rfc/options/response/result.ser

Modified: trunk/Webdav/src/response/options.php
==============================================================================
--- trunk/Webdav/src/response/options.php [iso-8859-1] (original)
+++ trunk/Webdav/src/response/options.php [iso-8859-1] Tue Sep 25 16:20:23 2007
@@ -33,7 +33,7 @@
     public function __construct( $version = null )
     {
         parent::__construct( ezcWebdavResponse::STATUS_200 );
-        $this->headers['DAV'] = ( $version === null ? '1' : null );
+        $this->headers['DAV'] = ( $version === null ? '1' : $version );
     }
 
     /**

Modified: trunk/Webdav/tests/clients/rfc/options/response/result.ser
==============================================================================
--- trunk/Webdav/tests/clients/rfc/options/response/result.ser [iso-8859-1] 
(original)
+++ trunk/Webdav/tests/clients/rfc/options/response/result.ser [iso-8859-1] Tue 
Sep 25 16:20:23 2007
@@ -1,1 +1,1 @@
-a:2:{s:7:"headers";a:3:{i:0;s:15:"HTTP/1.1 200 
OK";s:3:"DAV";N;s:5:"Allow";s:71:"GET, HEAD, PROPFIND, PROPPATCH, OPTIONS, 
DELETE, COPY, MOVE, MKCOL, PUT";}s:4:"body";s:0:"";}
+a:2:{s:7:"headers";a:3:{i:0;s:15:"HTTP/1.1 200 
OK";s:3:"DAV";s:1:"1";s:5:"Allow";s:71:"GET, HEAD, PROPFIND, PROPPATCH, 
OPTIONS, DELETE, COPY, MOVE, MKCOL, PUT";}s:4:"body";s:0:"";}


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

Reply via email to