Skip to content

Commit

Permalink
minor #6522 On line 360 the 404 Not Found header not working (mbrig…
Browse files Browse the repository at this point in the history
…-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
  • Loading branch information
xabbuh committed Apr 30, 2016
2 parents 59be653 + ebaf72c commit 1e1ab96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/from_flat_php_to_symfony2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ on the requested URI::
} elseif ('/index.php/show' === $uri && isset($_GET['id'])) {
show_action($_GET['id']);
} else {
header('Status: 404 Not Found');
header('HTTP/1.1 404 Not Found');
echo '<html><body><h1>Page Not Found</h1></body></html>';
}

Expand Down

0 comments on commit 1e1ab96

Please sign in to comment.