Last active
February 15, 2020 15:43
-
-
Save hartviglarsen/a5b2d8a6587835864e377cd26926bf66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WhitespaceModule : IHttpModule | |
{ | |
public void Dispose() { } | |
public void Init(HttpApplication context) | |
{ | |
context.BeginRequest += Context_BeginRequest; | |
} | |
private void Context_BeginRequest(object sender, EventArgs e) | |
{ | |
HttpApplication app = sender as HttpApplication; | |
app.Response.Filter = new WhitespaceFilter(app.Response.Filter); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment