Skip to content

Commit

Permalink
Drop expectation for JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Lake committed Jul 16, 2019
1 parent b989da0 commit 0527127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/ApiResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,6 @@ private function getPaginationBlock($paginator)
*/
private function shouldBuild($request, $response)
{
return $request->expectsJson() && in_array(get_class($response), $this->acceptedResponses);
return in_array(get_class($response), $this->acceptedResponses);
}
}

0 comments on commit 0527127

Please sign in to comment.