CrLfTab
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user