Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On line 360 the 404 Not Found header not working #6522

Closed
wants to merge 2 commits into from
Closed

On line 360 the 404 Not Found header not working #6522

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 29, 2016

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');.

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');`.
@@ -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.0 404 Not Found');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about HTTP/1.1 instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes HTTP/1.1 is perfectly working and is better than HTTP/1.0 I will propose it, thanks.
You can follow this link for more details to know the differences between HTTP/1.1 and HTTP/1.0.

@xabbuh
Copy link
Member

xabbuh commented Apr 30, 2016

Good catch, thanks @mbrig-co.

@xabbuh xabbuh closed this in 1e1ab96 Apr 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant