mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[PR #5896] [CLOSED] fix: allow body in GET requests #5404
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#5404
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?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5896
Author: @themavik
Created: 2/20/2026
Status: ❌ Closed
Base:
main← Head:fix/allow-body-in-get-requests📝 Commits (2)
b665c0cfix: allow body in GET requests7356583fix: address Copilot review - TypeScript narrowing and unit tests📊 Changes
2 files changed (+184 additions, -0 deletions)
View changed files
📝
packages/hoppscotch-common/src/services/__tests__/kernel-interceptor.service.spec.ts(+170 -0)📝
packages/hoppscotch-common/src/services/kernel-interceptor.service.ts(+14 -0)📄 Description
Fixes #3974
GET requests now send the body when provided, matching the behavior shown in the generated cURL. When the browser interceptor is active and the request has a body with GET/HEAD, requests are routed through the proxy interceptor since browser XHR/fetch APIs strip bodies for these methods.
Summary by cubic
Allow sending bodies with GET requests. When the Browser interceptor is active, GET/HEAD with a body route through the Proxy interceptor so the body is preserved, matching the generated cURL; refactored execute() for strict TypeScript narrowing and added unit tests covering routing and non-routing cases.
Written for commit
735658397c. Summary will update on new commits.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.