React to ReadFor breaking change.

This commit is contained in:
Chris Ross 2015-01-07 17:06:22 -08:00
parent fec32f6746
commit e6218c0429
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Security;
using Microsoft.AspNet.PipelineCore.Collections;
using Microsoft.AspNet.Security.OAuth;
using Microsoft.AspNet.WebUtilities;
using Microsoft.Framework.Logging;
@ -39,7 +40,7 @@ namespace Microsoft.AspNet.Security.Facebook
tokenResponse.EnsureSuccessStatusCode();
string oauthTokenResponse = await tokenResponse.Content.ReadAsStringAsync();
IFormCollection form = FormHelpers.ParseForm(oauthTokenResponse);
IFormCollection form = new FormCollection(FormReader.ReadForm(oauthTokenResponse));
var response = new JObject();
foreach (string key in form.Keys)
{