Merge pull request #1637 from CachetHQ/fix-acceptable-middleware
We don't need to pass "accepts:"
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