Make `BufferingHelper` public
dougbu opened this issue · 2 comments
dougbu commented
This class is currently pub-internal. An implementation is necessary when reading the request body multiple times. For example, ASP.NET Core WebHooks includes resource filters that calculate hashes of body content. They use the following helper to ensure this is safe:
https://github.com/aspnet/WebHooks/blob/be8571953a0124c0877f777e8fb5bb17329204ab/src/Microsoft.AspNetCore.WebHooks.Receivers/Filters/WebHookVerifyBodyContentFilter.cs#L94-L106
dougbu commented
Hmm, MVC used this class in a few places long before the ASP.NET Core WebHooks implementation was a thing.
aspnet-hello commented
This issue was moved to dotnet/aspnetcore#2684