aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorClaus Vium <clausvium@gmail.com>2019-02-26 10:30:51 +0100
committerClaus Vium <clausvium@gmail.com>2019-02-26 22:11:21 +0100
commit38f52a139e8017ddaaef55e1eb4cc97f1d4d8c04 (patch)
tree8026ffce07129121000e5efd8b04fe7f4592af14 /Emby.Server.Implementations/ApplicationHost.cs
parent194da8416bb93b492b86bab6dd199eb5dcc06e55 (diff)
Add response compression middleware
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index ca1dceedf..da9550b85 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -646,7 +646,7 @@ namespace Emby.Server.Implementations
.UseUrls("http://localhost:8096")
.ConfigureServices(services =>
{
- services.AddRouting();
+ services.AddResponseCompression();
services.AddHttpContextAccessor();
services.TryAddSingleton<IActionContextAccessor, ActionContextAccessor>();
})
@@ -657,6 +657,7 @@ namespace Emby.Server.Implementations
ReceiveBufferSize = 0x10000
});
+ app.UseResponseCompression();
app.Use(ExecuteWebsocketHandlerAsync);
app.Use(ExecuteHttpHandlerAsync);
})