Commit a686856e authored by Dries's avatar Dries
Browse files

Issue #1605040 by TravisCarden: drupal_send_headers() ignores headers with valid but falsy values.

parent c432629f
...@@ -1287,7 +1287,7 @@ function drupal_send_headers($default_headers = array(), $only_default = FALSE) ...@@ -1287,7 +1287,7 @@ function drupal_send_headers($default_headers = array(), $only_default = FALSE)
header($_SERVER['SERVER_PROTOCOL'] . ' ' . $value); header($_SERVER['SERVER_PROTOCOL'] . ' ' . $value);
} }
// Skip headers that have been unset. // Skip headers that have been unset.
elseif ($value) { elseif ($value !== FALSE) {
header($header_names[$name_lower] . ': ' . $value); header($header_names[$name_lower] . ': ' . $value);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment