Commit a2b9b60d authored by Crell's avatar Crell
Browse files

Send the correct HTTP response for unsupported mimetype.

parent d38d2986
......@@ -89,7 +89,7 @@ public function onView(GetResponseEvent $event) {
$event->setResponse(new Response(drupal_render_page($page_callback_result)));
}
else {
$event->setResponse(new Response('Requested MIME type not supported', 400));
$event->setResponse(new Response('Unsupported Media Type', 415));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment