Browse Source

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

tags/3.0.0
Teknikode 2 years ago
parent
commit
72a3d3efe7
2 changed files with 5 additions and 1 deletions
  1. 5
    0
      Teknik/Modules/CompressionModule.cs
  2. 0
    1
      Teknik/Web.config

+ 5
- 0
Teknik/Modules/CompressionModule.cs 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);
}
};
}
}

+ 0
- 1
Teknik/Web.config 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>

Loading…
Cancel
Save