Author: ts
Date: Tue Sep 25 19:54:17 2007
New Revision: 6274
Log:
- Asume default MIME type, if Content-Type header missing on PUT.
# litimus tests now 25/28 pass.
Modified:
trunk/Webdav/src/request/put.php
Modified: trunk/Webdav/src/request/put.php
==============================================================================
--- trunk/Webdav/src/request/put.php [iso-8859-1] (original)
+++ trunk/Webdav/src/request/put.php [iso-8859-1] Tue Sep 25 19:54:17 2007
@@ -58,7 +58,7 @@
}
if ( isset( $this->headers['Content-Type'] ) === false )
{
- throw new ezcWebdavMissingHeaderException( 'Content-Type' );
+ $this->setHeader( 'Content-Type', 'application/octet-stream' );
}
// Validate common HTTP/WebDAV headers
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components