Skip to content

Commit aadc724

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

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
@@ -200,7 +200,7 @@ Let's refactor the code a bit by moving the Google listener to its own class::
200200
$response = $event->getResponse();
201201

202202
if ($response->isRedirection()
203-
|| ($response->headers->has('Content-Type') && false === str_contains($response->headers->get('Content-Type'), 'html'))
203+
|| ($response->headers->has('Content-Type') && !str_contains($response->headers->get('Content-Type'), 'html'))
204204
|| 'html' !== $event->getRequest()->getRequestFormat()
205205
) {
206206
return;

0 commit comments

Comments
 (0)