Skip to content

The User-Agent is null by default #233

@nikusknx

Description

@nikusknx

If I add an Autorization header to a GraphQLHttpClient like this :
graphQLClient.HttpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", accessToken);

The User-agent is null, and the server send an error 500, I have to add manually a User-Agent like this
graphQLClient.HttpClient.DefaultRequestHeaders.Add("User-Agent", "graphql-dotnet/graphql-client");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions