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
4ed30eef
Commit
4ed30eef
authored
Feb 15, 2004
by
Dries
Browse files
- Bug
#5684
: filter duplicate headers.
parent
0d612d70
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
4ed30eef
...
...
@@ -137,7 +137,18 @@ function drupal_page_header() {
// Send appropriate response:
header
(
"Last-Modified:
$date
"
);
header
(
"ETag:
$etag
"
);
header
(
$cache
->
headers
);
/*
** Send the original request's headers. We send them one after
** another so PHP's header() function can deal with duplicate
** headers.
*/
$headers
=
explode
(
'\n'
,
$cache
->
headers
);
foreach
(
$headers
as
$header
)
{
header
(
$header
);
}
print
$cache
->
data
;
/*
...
...
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