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:
parent
8f0a3218f5
commit
72a3d3efe7
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user