aboutsummaryrefslogtreecommitdiffstats
path: root/Server.php
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-04-11 15:06:41 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-04-11 15:06:41 +0200
commitedbed3e22d96f6b3b68a8ddb18ba807c8ac67406 (patch)
tree4142139903df12889e4c737f3cbd07c68c1fc550 /Server.php
parent71fc51bf32609a5a83b978998bc3c83659440b0d (diff)
downloadEventsource-edbed3e22d96f6b3b68a8ddb18ba807c8ac67406.zip
Eventsource-edbed3e22d96f6b3b68a8ddb18ba807c8ac67406.tar.gz
Eventsource-edbed3e22d96f6b3b68a8ddb18ba807c8ac67406.tar.bz2
Responding 406 in text/plain and in UTF-8.
Diffstat (limited to 'Server.php')
-rw-r--r--Server.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Server.php b/Server.php
index 8f7a0c9..29a1f16 100644
--- a/Server.php
+++ b/Server.php
@@ -126,6 +126,10 @@ class Server {
'Status',
\Hoa\Http\Response::STATUS_NOT_ACCEPTABLE
);
+ $this->_response->sendHeader(
+ 'Content-Type',
+ 'text/plain; charset=utf-8'
+ );
throw new Exception(
'Client does not accept %s.', 1, self::MIME_TYPE);