mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-11-15 17:57:27 +01:00
Persist stats, redis
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user