mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #5726] [bug]: Content-Type header is stripped from request when defined in both Headers and Body tabs #2234
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anish-devgit on GitHub (Dec 25, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5726
Is there an existing issue for this?
Platform
Web App
Browser
Chrome
Operating System
Windows
Bug Description
What happened?
When a user manually adds a
Content-Typeheader in the Headers tab that conflicts with theContent-Typeimplied by the selected Body type (e.g.,application/json), the application fails to send anyContent-Typeheader to the server.The request is sent silently without the header, which causes backend parsing failures (e.g., 400 Bad Request) on strict APIs that require a specific Content-Type.
Steps to reproduce
POST.https://httpbin.org/post(This is an echo endpoint to verify headers).application/jsonand enter valid JSON (e.g.,{}).Content-Typetext/plainWhat I expected is
The application should either:
It should NOT strip the
Content-Typeheader entirely.Screenshots
Observed response from httpbin showing the missing header: