Author: kn
Date: Thu Oct 11 16:02:51 2007
New Revision: 6428

Log:
- Port changes back to MS transport

Modified:
    trunk/Webdav/src/transports/microsoft.php

Modified: trunk/Webdav/src/transports/microsoft.php
==============================================================================
--- trunk/Webdav/src/transports/microsoft.php [iso-8859-1] (original)
+++ trunk/Webdav/src/transports/microsoft.php [iso-8859-1] Thu Oct 11 16:02:51 
2007
@@ -32,29 +32,16 @@
      *
      * Microsoft clients require an additional header here, so that we send
      * this and dispatch back to the original method.
-     * 
-     * @param ezcWebdavDisplayInformation $info
+     *
+     * @param ezcWebdavOutputResult $output
      * @return void
-     *
-     * @throws ezcWebdavMissingHeaderException
-     *         if the submitted $info parameter is an [EMAIL PROTECTED]
-     *         ezcWebdavStringDisplayInformation} struct and the contained
-     *         [EMAIL PROTECTED] ezcWebdavResponse} object has no Content-Type 
header set.
-     * @throws ezcWebdavInvalidHeaderException
-     *         if the submitted $info parameter is an [EMAIL PROTECTED]
-     *         ezcWebdavEmptyDisplayInformation} and the contained [EMAIL 
PROTECTED]
-     *         ezcWebdavResponse} object has a Content-Type or a Content-Length
-     *         header set.
      */
-    protected function sendResponse( ezcWebdavDisplayInformation $info )
+    protected function sendResponse( ezcWebdavOutputResult $output )
     {
-        // Required by MS Clients to not think this is Frontpage stuff
-        if ( $info->response instanceof ezcWebdavOptionsResponse )
-        {
-            $info->response->setHeader( 'MS-Author-Via', 'DAV' );
-        }
+        // Add MS specific header
+        $output->header['MS-Author-Via'] = 'DAV';
 
-        parent::sendResponse( $info );
+        parent::sendResponse( $output );
 
         // MS IE7 requires a newline after the XML.
         echo "\n";


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

Reply via email to