Skip to content

Authorization is set too many times on static HttpClient #10

@jsgoupil

Description

@jsgoupil

Because you call this line in the constructor:

Client.DefaultRequestHeaders.TryAddWithoutValidation("Authorization", apiKey);

You are adding the authorization key every time we instanciate the client.
Make sure you don't add this line all the time otherwise it sends the Authorization key more than once.

I am forced to use this PixelClient as a singleton.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions