Skip to content

Conversation

@andrewtyped
Copy link
Contributor

Parse request body as form to extract GraphQLRequest properties.

Fixes #178

This change adds support for a common content-type and brings the library closer to parity with other popular GraphQL server implementations like express-graphql.

As an aside, the implementation of HttpRequest.ReadFormAsync also handles posts with content-type multipart/form-data - I did not add this support here as I felt it was out of scope for the issue. I also don't have much experience with that content type and wasn't sure what additional work might be needed to parse the body.

…aphql-dotnet#178)

Parse request body as form to extract GraphQLRequest properties.

Fixes graphql-dotnet#178
@pekkah pekkah merged commit 4837d78 into graphql-dotnet:develop Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GraphQLHTTPMiddleware - Support Content-Type application/x-www-form-urlencoded?

2 participants