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)
header($_SERVER['SERVER_PROTOCOL'] . ' ' . $value);
}
// Skip headers that have been unset.
elseif ($value) {
elseif ($value !== FALSE) {
header($header_names[$name_lower] . ': ' . $value);
}
}
......
Markdown is supported
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