1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Fixed downloads

This commit is contained in:
Uncled1023 2016-05-26 16:26:28 -07:00
parent a5daa7be0b
commit 5dcc2d9eeb
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ namespace Teknik.Areas.Upload.Controllers
Response.AddHeader("Accept-Ranges", "0-" + upload.ContentLength);
// check to see if we need to pass a specified range
if (!byRange)
if (byRange)
{
long anotherStart = startByte;
long anotherEnd = endByte;

View File

@ -21,7 +21,7 @@ namespace Teknik.Filters
public override void OnActionExecuted(ActionExecutedContext filterContext)
{
string title = string.Empty;
if (filterContext.Controller.ViewBag != null)
if (filterContext.Controller != null && filterContext.Controller.ViewBag != null && filterContext.Controller.ViewBag.Title != null)
{
title = filterContext.Controller.ViewBag.Title;
}