Merge branch 'release' into dev

This commit is contained in:
Chris R 2016-04-25 12:15:31 -07:00
commit da3d7943c5
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
{