Skip to content

Commit

Permalink
Removed HTTP Status for CLI-based Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeho committed Oct 15, 2010
1 parent 40b5be0 commit 1a57180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/qcodo/_core/framework/QErrorHandler.class.php
Expand Up @@ -108,7 +108,7 @@ protected static function Run() {
return false;
}
} else {
header("HTTP/1.1 500 Internal Server Error");
if (!QApplication::$CliMode) header("HTTP/1.1 500 Internal Server Error");
if (defined('ERROR_FRIENDLY_PAGE_PATH') && ERROR_FRIENDLY_PAGE_PATH && !QApplication::$CliMode) {
// Reset the Buffer
while(ob_get_level()) ob_end_clean();
Expand Down

0 comments on commit 1a57180

Please sign in to comment.