One of the ideas was to use an HttpModule and Response.Filter to post process the output however the Filter doesn't appear to be invoked - is not being able to use a Response.Filter a known restriction of using the Web Api (has it replaced something that
would have made this possible)? Or could I be doing it wrong - happy to share code if needed.
LittleClive
Member
91 Points
65 Posts
OnPostRequestHandlerExecute and Response.Filter not working
May 25, 2012 03:52 PM|LINK
We're trying to work around a bug that's in the Beta but subsequently fixed in the not-yet-released RC to do with transfer-encoding header.
(see http://forums.asp.net/t/1787050.aspx/1?Prevent+Omit+Transfer+Encoding+chunked+)
One of the ideas was to use an HttpModule and Response.Filter to post process the output however the Filter doesn't appear to be invoked - is not being able to use a Response.Filter a known restriction of using the Web Api (has it replaced something that would have made this possible)? Or could I be doing it wrong - happy to share code if needed.
LittleClive
Member
91 Points
65 Posts
Re: OnPostRequestHandlerExecute and Response.Filter not working
May 25, 2012 08:02 PM|LINK
Ah seems to work if I do it in OnBeginRequest rather than OnPostRequestHandlerExecute.