If an app using RequestStore returns a mutable constant, it gets mutated by RequestStore. This can cause errors as the object can keep growing larger and eventually crash. The fix is to not mutate the response body but instead return a new Rack::BodyProxy object.
If an app using RequestStore returns a mutable constant, it gets mutated by RequestStore. This can cause errors as the object can keep growing larger and eventually crash. The fix is to not mutate the response body but instead return a new
Rack::BodyProxy
object.