I have a response filter where I use the following code to get the HTML string from the byte array.
public override void Write(byte[] buffer, int offset, int count) {
var html = Encoding.UTF8.GetString(buffer);
// do stuff
}
if I set doDynamicCompression to true in web.config like the code below, the string looks like this
<system.webServer>
<urlCompression doDynamicCompression="true" />
Is there a secure way of getting the HTML string that works with compression and without?