From 5ac55b63250b7e8a316f55f32d2aca49cdbf5315 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Wed, 27 Mar 2024 18:10:19 +0200 Subject: [PATCH] Fix --- src/BUTR.CrashReportServer/Startup.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BUTR.CrashReportServer/Startup.cs b/src/BUTR.CrashReportServer/Startup.cs index 65836ce..d0f87ce 100644 --- a/src/BUTR.CrashReportServer/Startup.cs +++ b/src/BUTR.CrashReportServer/Startup.cs @@ -114,6 +114,7 @@ public void ConfigureServices(IServiceCollection services) opts.Converters.Add(new JsonStringEnumConverter(JsonNamingPolicy.CamelCase)); }); + /* services.AddResponseCompression(opts => { opts.EnableForHttps = true; @@ -129,6 +130,7 @@ public void ConfigureServices(IServiceCollection services) { options.Level = CompressionLevel.SmallestSize; }); + */ services.AddResponseCaching(); } @@ -146,7 +148,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env) app.UseRouting(); app.UseResponseCaching(); - app.UseResponseCompression(); + //app.UseResponseCompression(); app.UseAuthentication(); app.UseAuthorization();