Permalink
Browse files

Added EnsureSuccessStatusCode.

  • Loading branch information...
1 parent 15c9d6c commit ced528b56446d6914e556d1b5bac0b3191c4903c @rmbrunet rmbrunet committed Jan 29, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 MVC4/PersonaMVC4Example/Controllers/PersonaController.cs
@@ -36,6 +36,7 @@ public class PersonaController : ApiController
}
);
var result = await client.PostAsync("https://verifier.login.persona.org/verify", content);
+ result.EnsureSuccessStatusCode();
var stringresult = await result.Content.ReadAsStringAsync();
dynamic jsonresult = JsonConvert.DeserializeObject<dynamic>(stringresult);
if (jsonresult.status == "okay")

0 comments on commit ced528b

Please sign in to comment.