Skip to content

Commit 1e1ab96

Browse files
committed
minor #6522 On line 360 the 404 Not Found header not working (mbrig-co)
This PR was submitted for the 3.0 branch but it was merged into the 2.3 branch instead (closes #6522). Discussion ---------- On line 360 the `404 Not Found` header not working As the title of this change says on line 360 of this file the `404 Not Found` header is not working by the way written, it have to be like the one proposed: `header('HTTP/1.0 404 Not Found');`. Commits ------- ebaf72c On line 360 the header not working
2 parents 59be653 + ebaf72c commit 1e1ab96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/from_flat_php_to_symfony2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ on the requested URI::
357357
} elseif ('/index.php/show' === $uri && isset($_GET['id'])) {
358358
show_action($_GET['id']);
359359
} else {
360-
header('Status: 404 Not Found');
360+
header('HTTP/1.1 404 Not Found');
361361
echo '<html><body><h1>Page Not Found</h1></body></html>';
362362
}
363363

0 commit comments

Comments
 (0)