From a8ba71ee096a93151ba04e836f904f14922e0e34 Mon Sep 17 00:00:00 2001 From: jvyden Date: Thu, 31 Jul 2025 15:07:25 -0400 Subject: [PATCH] Revert "Also check for gzip when considering request encodings" --- Refresh.GameServer/Middlewares/DeflateMiddleware.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Refresh.GameServer/Middlewares/DeflateMiddleware.cs b/Refresh.GameServer/Middlewares/DeflateMiddleware.cs index 755290d8f..10ab5f53d 100644 --- a/Refresh.GameServer/Middlewares/DeflateMiddleware.cs +++ b/Refresh.GameServer/Middlewares/DeflateMiddleware.cs @@ -41,8 +41,8 @@ public void HandleRequest(ListenerContext context, Lazy databa return; string? encodings = context.RequestHeaders.Get("Accept-Encoding"); - // If the accepted encodings aren't specified, or they don't contain deflate/gzip, or we don't need to use deflate on the data, do nothing. - if (encodings == null || (!encodings.Contains("deflate") && !encodings.Contains("gzip")) || context.ResponseStream.Length <= DeflateCutoff) + // If the accepted encodings aren't specified, or they don't contain deflate, or we don't need to use deflate on the data, do nothing. + if (encodings == null || !encodings.Contains("deflate") || context.ResponseStream.Length <= DeflateCutoff) return; // Update the headers marking that we are sending encoded data