Seperate the header output from the wbxml header data.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 12 Apr 2010 17:42:14 +0000 (13:42 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 12 Apr 2010 17:44:44 +0000 (13:44 -0400)
framework/ActiveSync/lib/Horde/ActiveSync/Wbxml/Encoder.php

index 42e59e7..f326bbf 100644 (file)
@@ -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