[GH-ISSUE #4101] [bug]: Content-Type is not overriden by header when use Hoppscotch CLI #1466

Closed
opened 2026-03-16 20:25:51 +03:00 by kerem · 1 comment
Owner

Originally created by @georgelvov on GitHub (Jun 3, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4101

Originally assigned to: @jamesgeorge007 on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

Content-Type of the body is not overriden by Content-Type header using hoppscotch CLI, but using Hoppscotch UI it works.

Steps to reproduce

In the hoppscotch UI:

  1. Create collection with PATCH reuqest
  2. Set Content-Type header application/merge-patch+json
  3. Set json body to {"a": "a"} (to set body you are obliged to choose content-type. Since there is not application/merge-patch+json, choose application/json)
  4. Export collection as json

In hoppscotch CLI:
hopp test your_collection.json

Environment

Production

Version

Local

Originally created by @georgelvov on GitHub (Jun 3, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4101 Originally assigned to: @jamesgeorge007 on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior Content-Type of the body is not overriden by Content-Type header using hoppscotch CLI, but using Hoppscotch UI it works. ### Steps to reproduce In the hoppscotch UI: 1. Create collection with PATCH reuqest 2. Set Content-Type header `application/merge-patch+json` 3. Set json body to `{"a": "a"}` (to set body you are obliged to choose content-type. Since there is not `application/merge-patch+json`, choose `application/json`) 4. Export collection as json In hoppscotch CLI: `hopp test your_collection.json` ### Environment Production ### Version Local
kerem 2026-03-16 20:25:51 +03:00
  • closed this issue
  • added the
    bug
    cli
    labels
Author
Owner

@jamesgeorge007 commented on GitHub (Aug 8, 2024):

This is patched in Hoppscotch CLI v0.10.2. Please let us know if the issue persists.

<!-- gh-comment-id:2276323963 --> @jamesgeorge007 commented on GitHub (Aug 8, 2024): This is patched in [Hoppscotch CLI v0.10.2](https://www.npmjs.com/package/@hoppscotch/cli/v/0.10.2). Please let us know if the issue persists.
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#1466
No description provided.