Loading core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public function onResponse(ResponseEvent $event) { $response = $event->getResponse(); // Only care about HTML responses. if (stripos($response->headers->get('Content-Type'), 'text/html') === FALSE) { if (stripos($response->headers->get('Content-Type', ''), 'text/html') === FALSE) { return; } Loading core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php +1 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ public function onResponse(ResponseEvent $event) { // @see https://www.drupal.org/node/1009382 // @see https://www.drupal.org/node/2339491 // @see Drupal.ajax.prototype.beforeSend() $accept = $event->getRequest()->headers->get('accept'); $accept = $event->getRequest()->headers->get('accept', ''); if (strpos($accept, 'text/html') !== FALSE) { $response->headers->set('Content-Type', 'text/html; charset=utf-8'); Loading core/lib/Drupal/Core/EventSubscriber/RssResponseRelativeUrlFilter.php +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class RssResponseRelativeUrlFilter implements EventSubscriberInterface { */ public function onResponse(ResponseEvent $event) { // Only care about RSS responses. if (stripos($event->getResponse()->headers->get('Content-Type'), 'application/rss+xml') === FALSE) { if (stripos($event->getResponse()->headers->get('Content-Type', ''), 'application/rss+xml') === FALSE) { return; } Loading core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php +1 −1 Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ public function setValidator(Validator $validator = NULL) { */ public function onResponse(ResponseEvent $event) { $response = $event->getResponse(); if (strpos($response->headers->get('Content-Type'), 'application/vnd.api+json') === FALSE) { if (strpos($response->headers->get('Content-Type', ''), 'application/vnd.api+json') === FALSE) { return; } Loading Loading
core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public function onResponse(ResponseEvent $event) { $response = $event->getResponse(); // Only care about HTML responses. if (stripos($response->headers->get('Content-Type'), 'text/html') === FALSE) { if (stripos($response->headers->get('Content-Type', ''), 'text/html') === FALSE) { return; } Loading
core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php +1 −1 Original line number Diff line number Diff line Loading @@ -83,7 +83,7 @@ public function onResponse(ResponseEvent $event) { // @see https://www.drupal.org/node/1009382 // @see https://www.drupal.org/node/2339491 // @see Drupal.ajax.prototype.beforeSend() $accept = $event->getRequest()->headers->get('accept'); $accept = $event->getRequest()->headers->get('accept', ''); if (strpos($accept, 'text/html') !== FALSE) { $response->headers->set('Content-Type', 'text/html; charset=utf-8'); Loading
core/lib/Drupal/Core/EventSubscriber/RssResponseRelativeUrlFilter.php +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ class RssResponseRelativeUrlFilter implements EventSubscriberInterface { */ public function onResponse(ResponseEvent $event) { // Only care about RSS responses. if (stripos($event->getResponse()->headers->get('Content-Type'), 'application/rss+xml') === FALSE) { if (stripos($event->getResponse()->headers->get('Content-Type', ''), 'application/rss+xml') === FALSE) { return; } Loading
core/modules/jsonapi/src/EventSubscriber/ResourceResponseValidator.php +1 −1 Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ public function setValidator(Validator $validator = NULL) { */ public function onResponse(ResponseEvent $event) { $response = $event->getResponse(); if (strpos($response->headers->get('Content-Type'), 'application/vnd.api+json') === FALSE) { if (strpos($response->headers->get('Content-Type', ''), 'application/vnd.api+json') === FALSE) { return; } Loading