Permalink
Browse files

HttpContext.Current

> TODO: Can I get this without HttpContext.Current?

Yes
  • Loading branch information...
1 parent 7e89d33 commit c6a1b0e63640d4102f9b7112d0161d15dad8c817 @dahlbyk dahlbyk committed Jan 28, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 MVC4/PersonaMVC4Example/Controllers/PersonaController.cs
@@ -35,8 +35,7 @@ public class PersonaController : ApiController
var content = new FormUrlEncodedContent(
new Dictionary<string, string> {
{ "assertion", assertion },
- { "audience", HttpContext.Current.Request.Url.Host }
- //TODO: Can I get this without HttpContext.Current?
+ { "audience", Request.Url.Host },
}
);
var result = await client.PostAsync("https://verifier.login.persona.org/verify", content);

0 comments on commit c6a1b0e

Please sign in to comment.