Skip to content

Commit

Permalink
Fixed content type detection
Browse files Browse the repository at this point in the history
Only skip output if contentType is set and not html
  • Loading branch information
jokkedk committed Nov 27, 2012
1 parent 7d6f56a commit 1bbe4c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/ZFDebug/Controller/Plugin/Debug.php
Expand Up @@ -218,9 +218,9 @@ public function dispatchLoopShutdown()
}

$contentType = $this->getRequest()->getHeader('Content-Type');
if (false === $contentType || false === strpos($contentType, 'html')) {
return;
}
if (false !== $contentType && false === strpos($contentType, 'html')) {
return;
}

$disable = Zend_Controller_Front::getInstance()->getRequest()->getParam('ZFDEBUG_DISABLE');
if (isset($disable)) {
Expand Down

0 comments on commit 1bbe4c1

Please sign in to comment.