|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-10-22 13:44 UTC] jani@php.net
[2009-10-30 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 05:00:01 2025 UTC |
Description: ------------ If you access a script by a name other than its filename, it generates a Content-Location HTTP header. For example, if you request '/a' instead of '/a.php', the Content-Location header contains 'a.php'. If you try to override the Content-Location header in the script, like in the code example below, the response contains two Content-Location headers. Reproduce code: --------------- <?php header('Content-Location: http://www.example.org/a.php'); ?> Expected result: ---------------- One Content-Location header in result: Content-Location: http://www.example.org/a.php Actual result: -------------- Two Content-Location headers in result: Content-Location: a.php Content-Location: http://www.example.org/a.php