mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
Add 'helpful' support for content-encoding on PUT for Helge :-)
This commit is contained in:
parent
8e18449096
commit
bcb1710d3c
@ -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
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user