mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
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:
1 parent
f0f708ec38
commit
64f20edaab
2 files changed
+36
No files matched your search
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user