diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-12-21 22:20:19 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-12-21 22:20:19 +0000 |
commit | 983eda44acf810eb98ffdd247464abbec2b4d9d1 (patch) | |
tree | f4562550d4d986e1926a76a594ddd56ebd49851f /includes/common.inc | |
parent | d5fb9a23989169890431acc1cfd0cfe5952882c8 (diff) | |
download | brdo-983eda44acf810eb98ffdd247464abbec2b4d9d1.tar.gz brdo-983eda44acf810eb98ffdd247464abbec2b4d9d1.tar.bz2 |
- Patch #104693 by ChrisKennedy: send proper HTTP headers: HTTP/1.0 -> HTTP/1.1.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/common.inc b/includes/common.inc index c2e5ca8d0..730804458 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -320,7 +320,7 @@ function drupal_goto($path = '', $query = NULL, $fragment = NULL, $http_response * Generates a site off-line message */ function drupal_site_offline() { - drupal_set_header('HTTP/1.0 503 Service unavailable'); + drupal_set_header('HTTP/1.1 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')))))); @@ -330,7 +330,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.0 404 Not Found'); + drupal_set_header('HTTP/1.1 404 Not Found'); watchdog('page not found', check_plain($_GET['q']), WATCHDOG_WARNING); @@ -360,7 +360,7 @@ function drupal_not_found() { * Generates a 403 error if the request is not allowed. */ function drupal_access_denied() { - drupal_set_header('HTTP/1.0 403 Forbidden'); + drupal_set_header('HTTP/1.1 403 Forbidden'); watchdog('access denied', check_plain($_GET['q']), WATCHDOG_WARNING); // Keep old path for reference @@ -454,7 +454,7 @@ function drupal_http_request($url, $headers = array(), $method = 'GET', $data = $defaults[$header] = $header .': '. $value; } - $request = $method .' '. $path ." HTTP/1.0\r\n"; + $request = $method .' '. $path ." HTTP/1.1\r\n"; $request .= implode("\r\n", $defaults); $request .= "\r\n\r\n"; if ($data) { |