Skip to content

Commit bd50bb0

Browse files
alamiraultxabbuh
andauthored
Update create_framework/event_dispatcher.rst
Co-authored-by: Christian Flothmann <[email protected]>
1 parent b636006 commit bd50bb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

create_framework/event_dispatcher.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ the registration of a listener for the ``response`` event::
121121
$response = $event->getResponse();
122122

123123
if ($response->isRedirection()
124-
|| ($response->headers->has('Content-Type') && false === str_contains($response->headers->get('Content-Type'), 'html'))
124+
|| ($response->headers->has('Content-Type') && !str_contains($response->headers->get('Content-Type'), 'html'))
125125
|| 'html' !== $event->getRequest()->getRequestFormat()
126126
) {
127127
return;

0 commit comments

Comments
 (0)