Remove redundant body rewind.
This commit is contained in:
parent
68d721ec0d
commit
76fd055d8e
|
|
@ -344,7 +344,6 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect
|
||||||
&& Request.Body.CanRead)
|
&& Request.Body.CanRead)
|
||||||
{
|
{
|
||||||
var form = await Request.ReadFormAsync();
|
var form = await Request.ReadFormAsync();
|
||||||
Request.Body.Seek(0, SeekOrigin.Begin);
|
|
||||||
message = new OpenIdConnectMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value)));
|
message = new OpenIdConnectMessage(form.Select(pair => new KeyValuePair<string, string[]>(pair.Key, pair.Value)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue