[wp-trac] [WordPress Trac] #8226: WP returns invalid status headers
when PHP runs as CGI
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 15 16:07:15 GMT 2008
#8226: WP returns invalid status headers when PHP runs as CGI
---------------------+------------------------------------------------------
Reporter: tenpura | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.7
Severity: normal | Keywords: has-patch needs-testing
---------------------+------------------------------------------------------
When PHP runs via CGI, the HTTP status header will not be correctly set.
for example,
{{{
header('HTTP/1.0 404 Not Found');
}}}
returns "404 OK".
To get the expected result, the code needs to be written like
{{{
header('Status: 404 Not Found');
}}}
instead.
Detailed Information: http://drupal.org/node/175855
--
Ticket URL: <http://trac.wordpress.org/ticket/8226>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list