Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Refresh.GameServer/Middlewares/DeflateMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public void HandleRequest(ListenerContext context, Lazy<IDatabaseContext> 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
Expand Down