server(); $server['HTTP_ACCEPT'] = 'application/json'; $request->withServer($server); return $next($request); } }