Merge pull request #1637 from CachetHQ/fix-acceptable-middleware

We don't need to pass "accepts:"
This commit is contained in:
James Brooks
2016-03-20 14:54:39 +00:00

View File

@@ -28,7 +28,7 @@ class Acceptable
*/
public function handle(Request $request, Closure $next, $type = null)
{
if (!$request->accepts($type ?: 'accept:application/json')) {
if (!$request->accepts($type ?: 'application/json')) {
throw new NotAcceptableHttpException();
}