diff options
| author | Nils Adermann <naderman@naderman.de> | 2010-05-29 23:23:08 +0200 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2010-05-29 23:23:08 +0200 |
| commit | 26c2efc083e7a32b2b7f1d517051ba521bd82472 (patch) | |
| tree | 0f904d2c7ec410fc8fb92cc83b5ecc90b47e2f92 /phpBB/download | |
| parent | 6d7e30ae995fe0791c2bced0974b0445fa769ee9 (diff) | |
| parent | c185e45e09032e3ac32149a91f0133deb425acaa (diff) | |
| download | forums-26c2efc083e7a32b2b7f1d517051ba521bd82472.tar forums-26c2efc083e7a32b2b7f1d517051ba521bd82472.tar.gz forums-26c2efc083e7a32b2b7f1d517051ba521bd82472.tar.bz2 forums-26c2efc083e7a32b2b7f1d517051ba521bd82472.tar.xz forums-26c2efc083e7a32b2b7f1d517051ba521bd82472.zip | |
Merge branch 'ticket/p/7782' into develop-olympus
* ticket/p/7782:
[ticket/7782] Return 404 HTTP status code for nonexistent attachments.
[ticket/7782] Added spaces.
[ticket/7782] Added phpdoc comment for send_status_line function.
[ticket/7782] Send status line using refactored download/file.php logic.
Diffstat (limited to 'phpBB/download')
| -rw-r--r-- | phpBB/download/file.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 00b8e2e656..2154847865 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -670,15 +670,7 @@ function set_modified_headers($stamp, $browser) { if ($last_load !== false && $last_load >= $stamp) { - if (substr(strtolower(@php_sapi_name()),0,3) === 'cgi') - { - // in theory, we shouldn't need that due to php doing it. Reality offers a differing opinion, though - header('Status: 304 Not Modified', true, 304); - } - else - { - header('HTTP/1.0 304 Not Modified', true, 304); - } + send_status_line(304, 'Not Modified'); // seems that we need those too ... browsers header('Pragma: public'); header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 31536000)); |
