Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Request.Form throws 'Unexpected end of stream` if Request.Body was read #625

Closed
@pakrym

Description

@pakrym
using (var streamReader = new StreamReader(context.Request.Body))
{
    streamReader.ReadToEnd();
}
if (context.Request.HasFormContentType) { 
    var form = context.Request.Form; // << exception here
}   

Can we give better error message?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions