summaryrefslogtreecommitdiff
path: root/includes/bootstrap.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r--includes/bootstrap.inc16
1 files changed, 8 insertions, 8 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 94cd83447..a486d0c03 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -768,25 +768,25 @@ function drupal_set_header($name = NULL, $value = NULL, $append = FALSE) {
// Save status codes using the special key ":status".
if (preg_match('/^\d{3} /', $name)) {
$value = $name;
- $name = ':status';
+ $name = $name_lower = ':status';
}
else {
- _drupal_set_preferred_header_name($name);
- $name = strtolower($name);
+ $name_lower = strtolower($name);
}
+ _drupal_set_preferred_header_name($name);
if (!isset($value)) {
- $headers[$name] = FALSE;
+ $headers[$name_lower] = FALSE;
}
- elseif (isset($headers[$name]) && $append) {
+ elseif (isset($headers[$name_lower]) && $append) {
// Multiple headers with identical names may be combined using comma (RFC
// 2616, section 4.2).
- $headers[$name] .= ',' . $value;
+ $headers[$name_lower] .= ',' . $value;
}
else {
- $headers[$name] = $value;
+ $headers[$name_lower] = $value;
}
- drupal_send_headers(array($name => $headers[$name]), TRUE);
+ drupal_send_headers(array($name => $headers[$name_lower]), TRUE);
}
/**