Skip to content

Commit

Permalink
[FrameworkBundle] Adding a title tag to make the default error page j…
Browse files Browse the repository at this point in the history
…ust a little bit longer so that chrome displays it

The background is that Chrome only displays the content returned on an error page if payload is at least 512 bytes.
Prior to this change, the 404 page was just a few bytes short, resulting in the Chrome error message instead of the
real one returned by Symfony (confusing for the user).
  • Loading branch information
weaverryan committed Mar 26, 2011
1 parent bfd57c5 commit 1910e23
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>An Error Occurred: {{ status_text }}</title>
</head>
<body>
<h1>Oops! An Error Occurred</h1>
Expand Down

1 comment on commit 1910e23

@deefour
Copy link

Choose a reason for hiding this comment

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

Interesting - there's a fixed ticket with chromium regarding this, and at least one mention of IE having similar behavior. I'd never heard of this before.

Please sign in to comment.