diff --git a/lib/Horde/Rpc/ActiveSync.php b/lib/Horde/Rpc/ActiveSync.php index c0a7881..06ec37d 100644 --- a/lib/Horde/Rpc/ActiveSync.php +++ b/lib/Horde/Rpc/ActiveSync.php @@ -103,10 +103,12 @@ public function getResponse($request) } if (stripos($serverVars['REQUEST_URI'], 'autodiscover/autodiscover') !== false) { try { - if (!$this->_server->handleRequest('Autodiscover', null)) { + $result = $this->_server->handleRequest('Autodiscover', null); + if (!$result) { $this->_logger->err('Unknown error during Autodiscover.'); throw new Horde_Exception('Unknown Error'); } + $this->_contentType = $result; } catch (Horde_Exception_AuthenticationFailure $e) { $this->_sendAuthenticationFailedHeaders($e); exit;