compress parsed data to .json.zst

This commit is contained in:
2026-09-23 18:25:15 +02:00
parent c6b27cd3c9
commit 55f7d453b1
9 changed files with 67 additions and 35 deletions
@@ -36,9 +36,10 @@ internal class GetSaveDataHandler : RouteHandlerBase
$"Save with id {id} not found")
);
// json is stored compressed and is sent as is, the client decompresses it
await using var dataFile = File.OpenRead(dataFilePath);
return await ReturnHelper.ResponseStream(ctx, requestLogger, _cancelAllToken,
dataFile, contentType: "application/json");
dataFile, contentType: "application/zstd");
}
}