[GH-ISSUE #2121] [bug]: cannot override Content-Type #712

Closed
opened 2026-03-16 16:49:58 +03:00 by kerem · 2 comments
Owner

Originally created by @lapo-luchini on GitHub (Feb 16, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2121

Originally assigned to: @anwarulislam on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I need to send a WSDL request as text/xml, but that's not available from the drop-down types, so I chose application/xml and tried overriding it in the Headers section. The request is still sent as application/xml and not with the header I requested.

Steps to reproduce

  1. create a POST request
  2. under "body" select application/xml and paste an XML content
  3. under "headers" add Content-Type: text/xml
  4. send request
  5. check Network to see that application/xml was still used as a type

Environment

Production

Version

Cloud

Originally created by @lapo-luchini on GitHub (Feb 16, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2121 Originally assigned to: @anwarulislam on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior I need to send a WSDL request as `text/xml`, but that's not available from the drop-down types, so I chose `application/xml` and tried overriding it in the Headers section. The request is still sent as `application/xml` and not with the header I requested. ### Steps to reproduce 1. create a POST request 2. under "body" select `application/xml` and paste an XML content 3. under "headers" add `Content-Type: text/xml` 4. send request 5. check Network to see that `application/xml` was still used as a type ### Environment Production ### Version Cloud
kerem 2026-03-16 16:49:58 +03:00
Author
Owner

@mogarick commented on GitHub (Mar 4, 2022):

I'm in a similar situation.

I've just discovered Hoppscotch but the first test was for getting an AWS Cognito token.

For that purpose I need to send a Content-Type: application/x-amz-json-1.1.
Sadly Hoppsotch overrides my header with the on the Body tab (In my case Content-Type: application/json so I get a Cognito error:

{
  "Output": {
    "__type": "com.amazon.coral.service#UnknownOperationException"
  },
  "Version": "1.0"
}

Is this considered a high priority bug to solve or I better get back to Postman and come back in a few weeks/months?

Thank you in advance for the attention :)

<!-- gh-comment-id:1058694003 --> @mogarick commented on GitHub (Mar 4, 2022): I'm in a similar situation. I've just discovered Hoppscotch but the first test was for getting an AWS Cognito token. For that purpose I need to send a `Content-Type: application/x-amz-json-1.1`. Sadly Hoppsotch overrides my header with the on the Body tab (In my case `Content-Type: application/json` so I get a Cognito error: ``` { "Output": { "__type": "com.amazon.coral.service#UnknownOperationException" }, "Version": "1.0" } ``` Is this considered a high priority bug to solve or I better get back to Postman and come back in a few weeks/months? Thank you in advance for the attention :)
Author
Owner

@leoryu commented on GitHub (Mar 15, 2022):

I also met this issue.

In my case, I want to send with header Content-Type: application/merge-patch+json, but this header will be overwritten with the header in Body section.

<!-- gh-comment-id:1067967830 --> @leoryu commented on GitHub (Mar 15, 2022): I also met this issue. In my case, I want to send with header `Content-Type: application/merge-patch+json`, but this header will be overwritten with the header in `Body` section.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#712
No description provided.