Skip to content

Commit

Permalink
No need to check the request type
Browse files Browse the repository at this point in the history
  • Loading branch information
trsteel88 authored Feb 1, 2024
1 parent 21af154 commit 5432ee3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Listener/DisableHtmlFormValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\StreamedResponse;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\Event\KernelEvent;

class DisableHtmlFormValidation
Expand All @@ -20,10 +19,6 @@ public function __construct($enabled = false)
public function onKernelResponse(KernelEvent $event)
{
if ($this->enabled) {
if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
return;
}

$response = $event->getResponse();
$request = $event->getRequest();

Expand Down

0 comments on commit 5432ee3

Please sign in to comment.