mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
Some changes to the SAPI detection. The weird fact that it doesn't work without remains.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9448 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ea3c9282b0
commit
7479592c81
1 changed files with 2 additions and 1 deletions
|
@ -670,8 +670,9 @@ function set_modified_headers($stamp, $browser)
|
||||||
{
|
{
|
||||||
if ($last_load !== false && $last_load <= $stamp)
|
if ($last_load !== false && $last_load <= $stamp)
|
||||||
{
|
{
|
||||||
if (@php_sapi_name() === 'CGI')
|
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);
|
header('Status: 304 Not Modified', true, 304);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue