mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #5937] [bug]: Headers with empty values are stripped/not sent in the request #2329
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#2329
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 @jota-dantas on GitHub (Mar 4, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5937
Is there an existing issue for this?
Platform
Desktop App
Browser
Safari
Operating System
macOS
Bug Description
What happened?
When I add a header with a valid key but leave the value field completely empty, Hoppscotch appears to strip the header entirely before sending the request. The backend receives the request without that specific header key.
What I expected is
The header should be sent even if the value is empty (e.g., X-Empty-Header: ). Some APIs require the presence of the key with an empty string for specific logic or validation.
Steps to reproduce
Screenshots
In app:

On my local api:

Additional context
Interceptor used: Native.
*Note: This was tested on the Desktop App.
Deployment Type
Hoppscotch Cloud
Version
v26.2.0
@satyamkumar2692 commented on GitHub (Mar 7, 2026):
I'd like to work on this
@satyamkumar2692 commented on GitHub (Mar 7, 2026):
I tested this on the latest version and tried reproducing the issue by sending a request with an empty header value using https://httpbin.org/anything. The response still shows the header with an empty value (e.g., "My-Empty-Header": ""), which suggests the header is being sent correctly.
Attaching a screenshot of the response for reference.
@VishwaVikas2006 commented on GitHub (Mar 12, 2026):
Hi, I tested this locally using the latest version.
Steps:
• Created a POST request to https://httpbin.org/anything
• Added header
My-Empty-Headerwith an empty value• Sent the request
Result:
The response JSON includes
"My-Empty-Header": "", which shows that the header is still being sent even when the value is empty.Because of this, I wasn’t able to reproduce the issue on the current version. It may already be fixed or might only occur under specific conditions (for example the desktop app).
@saksham242007 commented on GitHub (Mar 12, 2026):
Hi, I’d like to take a look at this issue. I’ll try reproducing it on the latest version and check how headers with empty values are being handled. If I’m able to reproduce the problem, I’ll work on a fix and submit a PR.