diff --git a/src/Qandidate/Common/Symfony/HttpKernel/EventListener/JsonRequestTransformerListener.php b/src/Qandidate/Common/Symfony/HttpKernel/EventListener/JsonRequestTransformerListener.php index 147129f..c7f3d80 100755 --- a/src/Qandidate/Common/Symfony/HttpKernel/EventListener/JsonRequestTransformerListener.php +++ b/src/Qandidate/Common/Symfony/HttpKernel/EventListener/JsonRequestTransformerListener.php @@ -27,13 +27,13 @@ public function onKernelRequest(GetResponseEvent $event) { $request = $event->getRequest(); - $content = $request->getContent(); - - if (empty($content)) { + if (! $this->isJsonRequest($request)) { return; } + + $content = $request->getContent(); - if (! $this->isJsonRequest($request)) { + if (empty($content)) { return; }