You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
It looks like the headers are always getting added to the request's headers collection, and then, if there is a body, they're also getting added to the content's headers collection. Thus the duplication. Thanks for the bug report. I'll see about getting a PR out to fix this.
If I do
echo on
,cd /api/things
,set header my-header abcd
, and then do:I can see
my-header: abcd
showing up once in the list of headers.But if I try a POST with a body:
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.
The text was updated successfully, but these errors were encountered: