Skip to content

Commit

Permalink
The respondWithNoContent method should return a JsonResponse as well.…
Browse files Browse the repository at this point in the history
… (instead of a standard Http response)
  • Loading branch information
joshforbes committed May 23, 2017
1 parent cc1be97 commit bf7facf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller.php
Expand Up @@ -166,6 +166,6 @@ protected function respondWithArray(array $array, array $headers = [])
*/
protected function respondWithNoContent()
{
return response()->make('', 204);
return response()->json('', 204);
}
}

0 comments on commit bf7facf

Please sign in to comment.