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:
parent
09b113657a
commit
2f563ab520
7 changed files with 151 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue