Skip to content
Snippets Groups Projects
Commit a2b9b60d authored by Larry Garfield's avatar Larry Garfield
Browse files

Send the correct HTTP response for unsupported mimetype.

parent d38d2986
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -89,7 +89,7 @@ public function onView(GetResponseEvent $event) { ...@@ -89,7 +89,7 @@ public function onView(GetResponseEvent $event) {
$event->setResponse(new Response(drupal_render_page($page_callback_result))); $event->setResponse(new Response(drupal_render_page($page_callback_result)));
} }
else { else {
$event->setResponse(new Response('Requested MIME type not supported', 400)); $event->setResponse(new Response('Unsupported Media Type', 415));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment