Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.750 diff -u -F^f -r1.750 common.inc --- includes/common.inc 10 Jan 2008 23:14:58 -0000 1.750 +++ includes/common.inc 11 Jan 2008 17:18:05 -0000 @@ -329,7 +329,7 @@ function drupal_goto($path = '', $query */ function drupal_site_offline() { drupal_maintenance_theme(); - drupal_set_header('HTTP/1.1 503 Service unavailable'); + drupal_set_header($_SERVER['SERVER_PROTOCOL'] .' 503 Service unavailable'); drupal_set_title(t('Site off-line')); print theme('maintenance_page', filter_xss_admin(variable_get('site_offline_message', t('@site is currently under maintenance. We should be back shortly. Thank you for your patience.', array('@site' => variable_get('site_name', 'Drupal')))))); @@ -339,7 +339,7 @@ function drupal_site_offline() { * Generates a 404 error if the request can not be handled. */ function drupal_not_found() { - drupal_set_header('HTTP/1.1 404 Not Found'); + drupal_set_header($_SERVER['SERVER_PROTOCOL'] .' 404 Not Found'); watchdog('page not found', check_plain($_GET['q']), NULL, WATCHDOG_WARNING); @@ -369,7 +369,7 @@ function drupal_not_found() { * Generates a 403 error if the request is not allowed. */ function drupal_access_denied() { - drupal_set_header('HTTP/1.1 403 Forbidden'); + drupal_set_header($_SERVER['SERVER_PROTOCOL'] .' 403 Forbidden'); watchdog('access denied', check_plain($_GET['q']), NULL, WATCHDOG_WARNING); // Keep old path for reference. Index: includes/database.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/database.inc,v retrieving revision 1.92 diff -u -F^f -r1.92 database.inc --- includes/database.inc 8 Jan 2008 16:03:31 -0000 1.92 +++ includes/database.inc 11 Jan 2008 17:18:05 -0000 @@ -173,7 +173,7 @@ function db_set_active($name = 'default' function _db_error_page($error = '') { global $db_type; drupal_maintenance_theme(); - drupal_set_header('HTTP/1.1 503 Service Unavailable'); + drupal_set_header($_SERVER['SERVER_PROTOCOL'] .' 503 Service Unavailable'); drupal_set_title('Site off-line'); $message = '

The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.

'; Index: includes/bootstrap.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v retrieving revision 1.206 diff -u -F^f -r1.206 bootstrap.inc --- includes/bootstrap.inc 10 Jan 2008 22:47:17 -0000 1.206 +++ includes/bootstrap.inc 11 Jan 2008 17:18:06 -0000 @@ -592,7 +592,7 @@ function drupal_page_cache_header($cache if ($if_modified_since && $if_none_match && $if_none_match == $etag // etag must match && $if_modified_since == $last_modified) { // if-modified-since must match - header('HTTP/1.1 304 Not Modified'); + header($_SERVER['SERVER_PROTOCOL'] .' 304 Not Modified'); // All 304 responses must send an etag if the 200 response for the same object contained an etag header("Etag: $etag"); exit(); @@ -955,7 +955,7 @@ function _drupal_bootstrap($phase) { case DRUPAL_BOOTSTRAP_ACCESS: // Deny access to hosts which were banned - t() is not yet available. if (drupal_is_denied('host', ip_address())) { - header('HTTP/1.1 403 Forbidden'); + header($_SERVER['SERVER_PROTOCOL'] .' 403 Forbidden'); print 'Sorry, '. check_plain(ip_address()) .' has been banned.'; exit(); }