graphql-dotnet / graphql-dotnet/graphql-client

Remove UTF-8 encoding from SendQueryAsync function

Open
#244 7 comments 1 reaction 0 assignees View on GitHub
enhancement good first issue
Dominant language
C#
Stars
648
Forks
136
PR merge metrics
No merged PRs in 30d

Description

How can I remove the charset=utf-8 from the request header when using the SendQueryAsync?

I have tried setting the GraphQLHttpClientOptions.MediaType to "application/json" (wich I also think is the default, so it shouldn't be necessary), but I still keep getting the Content-type header of the request to : application/json; charset=utf-8, which is rejected by the service I'm requesting, it needs to be just application/json.

My project is a .net core 3.1 project and the graphql-client is v3.1.2

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.