Oct 16, 2018 10:38 AM|illidian|LINK
For security reasons, I need to process body of each post request before it reaching destination hub.
I assumed that the right approach is to implement custom OwinMiddleware and inside process body content.
However, for some reason context.Request.Body length is always 0 (despite that message payload is actually reaching Hub).
What do I miss?
This is how my Middleware class looks like:
public class SanitizeMiddleware : OwinMiddleware
public SanitizeMiddleware(OwinMiddleware next)
public async override Task Invoke(IOwinContext context)
//context.Request.Body length is 0...