Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

POST/PATCH with body adds custom headers twice #237

@djmitchella

Description

@djmitchella

If I do echo on, cd /api/things, set header my-header abcd, and then do:

GET

I can see my-header: abcd showing up once in the list of headers.

But if I try a POST with a body:

POST -c "hello"

then I get my-header: abcd twice in the list of headers, and if the API I'm talking to doesn't like duplicated headers, I get problems. If I don't supply a body, I don't get the duplicated header, it only shows up once.

Same problem happens with PATCH; if I supply a body, then my custom header gets sent twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions