8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44df5e8 commit 2ff16f8Copy full SHA for 2ff16f8
event_dispatcher.rst
@@ -41,6 +41,7 @@ The most common way to listen to an event is to register an **event listener**::
41
// Customize your response object to display the exception details
42
$response = new Response();
43
$response->setContent($message);
44
+ $response->headers->set('Content-Type', 'text/plain; charset=utf-8');
45
46
// HttpExceptionInterface is a special type of exception that
47
// holds status code and header details
0 commit comments