React to ReadFor breaking change.
This commit is contained in:
parent
fec32f6746
commit
e6218c0429
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue