Skip to content

Conversation

@jasmin-mistry
Copy link
Contributor

Removed the utf-8 encoding from the StringContent parameter list and moved it to the MediaType value in GraphQLClientOptions class. The reason to do this was the API which I'm connecting rejects the uft-8 encoding along with ContentType as 'application/json'. So to allow clients to customize the ContentType and not restrict them to use utf-8 encoding I have updated the GraphQLClientOptions.MediaType property's default value.

I have also added a new test that proves that ContentType without utf-8 encoding work along with all the existing tests. I would have added more test to assert the default media/content type contains utf-8 from the request but unfortunately the GraphQLClient doesn't expose the httpClient.

Please let me know if you have any queries or suggestions.

@deinok
Copy link
Member

deinok commented Apr 17, 2018

LGTM, but i will take a closer look

@deinok deinok merged commit 8a406a6 into graphql-dotnet:master May 7, 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.

2 participants