Commit 4ed30eef authored by Dries's avatar Dries
Browse files

- Bug #5684: filter duplicate headers.
parent 0d612d70
......@@ -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;
/*
......
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