Persist stats, redis

This commit is contained in:
Kieran
2022-02-16 23:19:31 +00:00
parent 575ab74b14
commit f47ca6cb5e
13 changed files with 193 additions and 55 deletions

View File

@@ -47,6 +47,11 @@ public class DownloadController : Controller
else if (egressReq.Ranges.Count() == 1)
{
Response.StatusCode = (int)HttpStatusCode.PartialContent;
if (egressReq.Ranges.Sum(a => a.Size) == 0)
{
Response.StatusCode = (int)HttpStatusCode.RequestedRangeNotSatisfiable;
return;
}
}
else
{