Closed bernardiego closed 2 years ago
Hello @bernardiego Thanks for taking the time to report and provide a fix for this issue! 💪 🙏 I will reproduce it and include this fix in the following release.
Hello @bernardiego
Thank you again for your contribution 🙏. Your fix has been included in the v2.0.0-RC.01 🎆🎉.
I came across a bug in which for a request body big enough (30kb+), the cache wasn't able to get fetched properly because of a different hash string.
In Idempotency.cs -> GetRequestsDataHash(HttpRequest httpRequest) we just only have to add
httpRequest.EnableBuffering();
and then, make the copy asynchronously to the memoryStream.
The complete code: