We don't need to pass "accepts:". Fixes #1636
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user