Remove Commented Function In /assets Endpoint

This commit is contained in:
Alan Moon 2026-09-14 17:38:56 -07:00
parent a619a7969d
commit d9141377ec

View File

@ -74,23 +74,6 @@ namespace NotPogo.Controllers
await System.IO.File.ReadAllBytesAsync(pathToAsset) : await System.IO.File.ReadAllBytesAsync(pathToAsset) :
Encoding.UTF8.GetBytes($"Missing Asset File For {game} - {assetPath}"); Encoding.UTF8.GetBytes($"Missing Asset File For {game} - {assetPath}");
//var contentType = GetContentType(pathToAsset);
//if(contentType == "text/xml")
//{
// // response needs to be gzipped
// byte[] compressed;
// using (var ms = new MemoryStream())
// {
// using (var gzip = new GZipStream(ms, CompressionLevel.Fastest, leaveOpen: true))
// {
// await gzip.WriteAsync(assetBytes);
// }
// compressed = ms.ToArray();
// }
// _logger.LogInformation("Serving Compressed Game Asset {Game}/{FileName}", game, assetPath);
// return File(compressed, GetContentType(pathToAsset));
//}
_logger.LogInformation("Serving Game Asset {Game}/{FileName}", game, assetPath); _logger.LogInformation("Serving Game Asset {Game}/{FileName}", game, assetPath);
return File(assetBytes, GetContentType(pathToAsset)); return File(assetBytes, GetContentType(pathToAsset));
} }