summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/bootstrap.inc6
-rw-r--r--includes/common.inc2
2 files changed, 5 insertions, 3 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index b11a8c880..86d80dbdd 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -1403,8 +1403,10 @@ function _drupal_bootstrap($phase) {
}
// Prepare for non-cached page workflow.
- ob_start();
- drupal_page_header();
+ if ($_SERVER['SERVER_SOFTWARE'] !== 'PHP CLI') {
+ ob_start();
+ drupal_page_header();
+ }
break;
case DRUPAL_BOOTSTRAP_LANGUAGE:
diff --git a/includes/common.inc b/includes/common.inc
index e4400995e..e1e2053d6 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -834,7 +834,7 @@ function _drupal_log_error($error, $fatal = FALSE) {
}
if ($fatal) {
- drupal_set_header($_SERVER['SERVER_PROTOCOL'] . ' 500 Service unavailable (with message)');
+ drupal_set_header('500 Service unavailable (with message)');
}
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {