Request method detection changed to req.method