From e9e5073eb5868f303ceb65e0f2c463f14eb62f2b Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 31 Jan 2012 09:23:59 -0800 Subject: [PATCH] Implement support for 'Brief' header. Also add VPOLL and VAVAILABILITY to list of supported components. --- inc/CalDAVRequest.php | 7 +++++++ inc/DAVResource.php | 6 +++--- inc/caldav-REPORT.php | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index e0963fae..01711e09 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -105,6 +105,11 @@ class CalDAVRequest */ public $ticket; + /** + * Whether this request included the 'Brief: T' header. + */ + public $brief_response; + /** * Create a new CalDAVRequest object. */ @@ -113,6 +118,8 @@ class CalDAVRequest $this->options = $options; if ( !isset($this->options['allow_by_email']) ) $this->options['allow_by_email'] = false; + + $this->brief_response = (isset($_SERVER['HTTP_BRIEF']) && (strtoupper($_SERVER['HTTP_BRIEF']) == 'T')); /** * Our path is /