1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Removed compression module as it's not needed with IIS.

This commit is contained in:
Uncled1023 2018-02-03 12:32:07 -08:00
parent 8f0a3218f5
commit 72a3d3efe7
2 changed files with 5 additions and 1 deletions

View File

@ -29,6 +29,11 @@ namespace Teknik.Modules
response.AppendHeader("Content-Encoding", "gzip");
response.Filter = new GZipStream(response.Filter, CompressionMode.Compress);
}
else if (encodingsAccepted.Contains("deflate"))
{
response.AppendHeader("Content-Encoding", "deflate");
response.Filter = new DeflateStream(response.Filter, CompressionMode.Compress);
}
};
}
}

View File

@ -59,7 +59,6 @@
<add name="BlacklistModule" type="Teknik.Modules.BlacklistModule, Teknik" />
<add name="CORSModule" type="Teknik.Modules.CORSModule, Teknik" />
<add name="CSPModule" type="Teknik.Modules.CSPModule, Teknik" />
<add name="CompressionModule" type="Teknik.Modules.CompressionModule, Teknik" />
<remove name="UrlRoutingModule-4.0" />
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
</modules>