diff options
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r-- | includes/bootstrap.inc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 2cfbdacb7..51f0260ee 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -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; /* |