I'm playing with ASP.NET MVC a bit and have written a filter to compress my output (OnActionExecuting). Everything works fine except when the controller throws (and doesn't handle) an exception.
The problem I'm having is that the content seems to still be compressed, but the browser never gets the content-encoding header.
I've checked the response on the OnException method of my controller, and I can see that the filter is still there and the header is still there. However, when I look at the response on fiddler, no header.
Any ideas?