Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #13 from fracz/patch-1
Browse files Browse the repository at this point in the history
Return immediately if request is not json
  • Loading branch information
asm89 authored Apr 24, 2017
2 parents 54efc90 + a56ada7 commit 176c37b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 176c37b

Please # to comment.