Update to Drupal 8.1.10. For more information, see https://www.drupal.org/project/drupal/releases/8.1.10

This commit is contained in:
Pantheon Automation 2016-09-21 10:51:55 -07:00 committed by Greg Anderson
parent 09b113657a
commit 2f563ab520
7 changed files with 151 additions and 12 deletions

View file

@ -188,13 +188,16 @@ class DefaultExceptionSubscriber implements EventSubscriberInterface {
if (!method_exists($this, $method)) {
if ($exception instanceof HttpExceptionInterface) {
$this->onFormatUnknown($event);
$response = $event->getResponse();
$response->headers->set('Content-Type', 'text/plain');
}
else {
$this->onHtml($event);
}
return;
}
$this->$method($event);
else {
$this->$method($event);
}
}
/**