This commit is contained in:
Stephan
2017-09-23 10:08:18 +02:00
parent c1e2625de0
commit 5ba2ffcbf3
224 changed files with 709 additions and 709 deletions

View File

@@ -19,10 +19,10 @@ namespace Umbraco.Web.WebApi
/// <param name="request"></param>
/// <returns></returns>
internal static Attempt<IOwinContext> TryGetOwinContext(this HttpRequestMessage request)
{
{
// occurs in unit tests?
if (request.Properties.TryGetValue("MS_OwinContext", out var o) && o is IOwinContext owinContext)
return Attempt.Succeed(owinContext);
return Attempt.Succeed(owinContext);
var httpContext = request.TryGetHttpContext();
try