Skip to content

Commit

Permalink
Fix sending proper Content-Type header.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 5, 2019
1 parent 13dc223 commit 797fbbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Horde/Rpc/ActiveSync.php
Expand Up @@ -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;
Expand Down

0 comments on commit 797fbbe

Please sign in to comment.