From: Michael J. Rubinsky Date: Mon, 12 Apr 2010 17:42:14 +0000 (-0400) Subject: Seperate the header output from the wbxml header data. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=57c767002f375d8c1366f1dcd49014cc28ed9853;p=horde.git Seperate the header output from the wbxml header data. --- diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Wbxml/Encoder.php b/framework/ActiveSync/lib/Horde/ActiveSync/Wbxml/Encoder.php index 42e59e75d..f326bbf2a 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Wbxml/Encoder.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Wbxml/Encoder.php @@ -102,6 +102,11 @@ class Horde_ActiveSync_Wbxml_Encoder extends Horde_ActiveSync_Wbxml public function startWBXML() { header('Content-Type: application/vnd.ms-sync.wbxml'); + $this->outputWbxmlHeader(); + } + + public function outputWbxmlHeader() + { $this->_outByte(0x03); // WBXML 1.3 $this->_outMBUInt(0x01); // Public ID 1 $this->_outMBUInt(106); // UTF-8