Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a686856e
Commit
a686856e
authored
Feb 09, 2013
by
Dries
Browse files
Issue
#1605040
by TravisCarden: drupal_send_headers() ignores headers with valid but falsy values.
parent
c432629f
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/bootstrap.inc
View file @
a686856e
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment