Coerce the content-type on PUT.

It seems that failing to correctly set the content-type header
on PUT is a common error.
This commit is contained in:
Andrew McMillan committed 2010-08-29 13:01:56 +12:00
1 parent f0f708ec38
commit 64f20edaab
2 files changed
+36

No files matched your search

+1
View File
@@ -81,6 +81,7 @@ switch ( $request->method ) {
case 'HEAD': include('caldav-GET.php'); break;
case 'PROPPATCH': include('caldav-PROPPATCH.php'); break;
case 'PUT':
$request->CoerceContentType();
switch( $request->content_type ) {
case 'text/calendar':
/** use original DAViCal 'PUT' code which will be rewritten */