React to FormReader api change.

This commit is contained in:
Chris R 2016-04-25 12:15:04 -07:00
parent 6e3ff403d4
commit 0cd7c7236b
1 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ namespace Microsoft.AspNetCore.Authentication.Twitter
response.EnsureSuccessStatusCode();
string responseText = await response.Content.ReadAsStringAsync();
var responseParameters = new FormCollection(FormReader.ReadForm(responseText));
var responseParameters = new FormCollection(new FormReader(responseText).ReadForm());
if (!string.Equals(responseParameters["oauth_callback_confirmed"], "true", StringComparison.Ordinal))
{
throw new Exception("Twitter oauth_callback_confirmed is not true.");
@ -277,7 +277,7 @@ namespace Microsoft.AspNetCore.Authentication.Twitter
}
var responseText = await response.Content.ReadAsStringAsync();
var responseParameters = new FormCollection(FormReader.ReadForm(responseText));
var responseParameters = new FormCollection(new FormReader(responseText).ReadForm());
return new AccessToken
{