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