Skip to content

Commit

Permalink
Changed used services provider in SetRedirectResponse method
Browse files Browse the repository at this point in the history
  • Loading branch information
quigamdev committed Apr 12, 2019
1 parent d804e5c commit f4ebb99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static void RedirectToRoutePermanent(this IDotvvmRequestContext context,
}

public static void SetRedirectResponse(this IDotvvmRequestContext context, string url, int statusCode = (int)HttpStatusCode.Redirect, bool replaceInHistory = false, bool allowSpaRedirect = false) =>
context.Services.GetRequiredService<IHttpRedirectService>().WriteRedirectResponse(context.HttpContext, url, statusCode, replaceInHistory, allowSpaRedirect);
context.Configuration.ServiceProvider.GetRequiredService<IHttpRedirectService>().WriteRedirectResponse(context.HttpContext, url, statusCode, replaceInHistory, allowSpaRedirect);


/// <summary>
Expand Down

0 comments on commit f4ebb99

Please sign in to comment.