We don't need to pass "accepts:". Fixes #1636

This commit is contained in:
James Brooks
2016-03-20 12:07:07 +00:00
parent 37c8e5924f
commit 9ad20d013b

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();
}