mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[GH-ISSUE #4660] [bug]: Content-type not being set in Windows App #1728
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#1728
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 @clibu on GitHub (Jan 6, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4660
Originally assigned to: @CuriousCorrelation on GitHub.
Is there an existing issue for this?
Current behavior
Rest - POST with body set to application/json isn't setting 'Content-Type: ' to application/json
Steps to reproduce
I'm using Rest - POST and have body set to application/json and I've set a raw JSON object.
The server is getting an empty body object {}. And the generated code is:
ie. 'Content-Type: ' is not set to 'application/josn'
Hoppscotch V2024.12.0 on Windows 11
Environment
Release
Version
Local
@yousefmarey12 commented on GitHub (Jan 9, 2025):
Hi, I am ready to tackle this issue.
@yousefmarey12 commented on GitHub (Jan 9, 2025):
@clibu
Thank you for the issue.
Just to be clear, what is meant by "and have body set to application/json and I've set a raw JSON object." ?
On the Windows App, the only option I see is specifying
Content-Typefrom a list of different data types, and a POST request is working perfectly for me.In the image below, are you referring to the dropdown that my cursor is on?
@clibu commented on GitHub (Jan 9, 2025):
Yes, on the dropdown select application/json as shown here:

HTH
@yousefmarey12 commented on GitHub (Jan 14, 2025):
@clibu
POST requests work with me, where I set the "Content Type" to be
application/json. Have you tried sending POST requests to other servers via Hoppscotch?@clibu commented on GitHub (Jan 15, 2025):
@yousefmarey12
Have you checked that:
a) the server is receiving JSON
b) click on "Generate Code" in Hoppscotch shows
application/json?I'm using Insomnia and it works correctly.
@CuriousCorrelation commented on GitHub (Jun 2, 2025):
Hi!
There have been several overhauls of the underlying kernel that relays information between the app and the interceptor since
V24.12.0and issue appears to be resolved inv25.5.0and above based on current testing.Content-Typeheader is now being set correctly ascontent-type: application/json.Closing this issue as resolved. If you're still experiencing inconsistent header behavior or notice any related issues, please feel free to reopen this issue with updated reproduction steps.