Browse Source

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

pull/111/head
Teknikode 5 years ago
parent
commit
72a3d3efe7
  1. 5
      Teknik/Modules/CompressionModule.cs
  2. 1
      Teknik/Web.config

5
Teknik/Modules/CompressionModule.cs

@ -29,6 +29,11 @@ namespace Teknik.Modules @@ -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);
}
};
}
}

1
Teknik/Web.config

@ -59,7 +59,6 @@ @@ -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>

Loading…
Cancel
Save