Remove Commented Function In /assets Endpoint
This commit is contained in:
parent
a619a7969d
commit
d9141377ec
@ -74,23 +74,6 @@ namespace NotPogo.Controllers
|
||||
await System.IO.File.ReadAllBytesAsync(pathToAsset) :
|
||||
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);
|
||||
return File(assetBytes, GetContentType(pathToAsset));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user