Solving a bug on cooking - request object is not modified