Add 'helpful' support for content-encoding on PUT for Helge :-)

This commit is contained in:
Andrew McMillan 2011-10-04 16:17:19 +02:00
parent 8e18449096
commit bcb1710d3c

View File

@ -139,6 +139,11 @@ class CalDAVRequest
}
$this->user_agent = ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Probably Mulberry"));
if ( isset($_SERVER['HTTP_CONTENT_ENCODING']) ) {
@dbg_error_log('caldav', 'Content-Encoding: %s', $_SERVER['HTTP_CONTENT_ENCODING']);
$this->PreconditionFailed(402, 'content-encoding', 'This server does not presently support encoded content.');
}
/**
* A variety of requests may set the "Depth" header to control recursion
*/