Skip to content

Commit 7c57577

Browse files
authored
Revert "Also check for gzip when considering request encodings" (#913)
Reverts #908
2 parents 051b3b6 + a8ba71e commit 7c57577

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Refresh.GameServer/Middlewares/DeflateMiddleware.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public void HandleRequest(ListenerContext context, Lazy<IDatabaseContext> databa
4141
return;
4242

4343
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)
44+
// 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.
45+
if (encodings == null || !encodings.Contains("deflate") || context.ResponseStream.Length <= DeflateCutoff)
4646
return;
4747

4848
// Update the headers marking that we are sending encoded data

0 commit comments

Comments
 (0)