Skip to content

Remove UTF-8 encoding from SendQueryAsync function #244

Open
@eriksylwan

Description

@eriksylwan

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions