There was an error while loading. Please reload this page.
2 parents 051b3b6 + a8ba71e commit 7c57577Copy full SHA for 7c57577
1 file changed
Refresh.GameServer/Middlewares/DeflateMiddleware.cs
@@ -41,8 +41,8 @@ public void HandleRequest(ListenerContext context, Lazy<IDatabaseContext> databa
41
return;
42
43
string? encodings = context.RequestHeaders.Get("Accept-Encoding");
44
- // 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.
45
- 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)
46
47
48
// Update the headers marking that we are sending encoded data
0 commit comments