Bug Fix: Unauthorized HTTP Status Desc length

Status Description was to long causing a 0-byte result to be returned
(HTTP 504).
This commit is contained in:
Gary Sharp
2014-03-03 14:29:17 +11:00
parent 96c5860080
commit 74775e9e3d
2 changed files with 2 additions and 2 deletions
@@ -32,7 +32,7 @@ namespace Disco.Services.Plugins
if (CurrentUser != null)
AuthorizationLog.LogAccessDenied(CurrentUser.Id, resource, message);
return new HttpUnauthorizedResult(message);
return new HttpUnauthorizedResult();
}
}
@@ -32,7 +32,7 @@ namespace Disco.Web.Controllers
if (UserService.CurrentUserId != null)
AuthorizationLog.LogAccessDenied(UserService.CurrentUserId, string.Format("{0} [{1}]", accessDeniedException.Resource, Request.RawUrl), accessDeniedException.Message);
return new HttpUnauthorizedResult(accessDeniedException.Message);
return new HttpUnauthorizedResult();
}
}