Skip to content

WithJsonBody method adds the wrong headers #30

@vladdex

Description

@vladdex
image This is how the official documentation specifies to use the .WithJsonBody method but using this will result in a request with the wrong headers. The request should add a "Content-Type: application/json" header not the Accept header (which specifies the accepted response). Using the WithJsonBody method now to do a post will result in an "UnsupportedMediaType" response. image image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions