mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #5141] [MERGED] fix(kernel): body size calculation in web relay #5075
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#5075
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/5141
Author: @soumyamakkar
Created: 6/11/2025
Status: ✅ Merged
Merged: 6/19/2025
Merged by: @jamesgeorge007
Base:
patch← Head:fix/response-meta-size📝 Commits (10+)
c69f2f0fix: correct body size calculation in web interceptor19ae39bfix: relay implementationa0854dffix: relay implementation112fcc2Merge pull request #1 from hoppscotch/main4ac116bMerge remote-tracking branch 'origin/fix/response-meta-size' into fix/response-meta-size51f6edfMerge branch 'patch' into fix/response-meta-size33fef03Merge remote-tracking branch 'origin/fix/response-meta-size' into fix/response-meta-size25a098fUpdate index.ts0c06761chore: clean up leftover codefecb03ftrying to push📊 Changes
1 file changed (+8 additions, -5 deletions)
View changed files
📝
packages/hoppscotch-kernel/src/relay/impl/web/v/1.ts(+8 -5)📄 Description
Closes #5133
What’s this PR about?
This PR fixes the incorrect size calculation of the response body in the
kernel-interceptors. It ensures accurate measurement whether the body is anArrayBuffer,Uint8Array, string, or object.What's changed
kernel-interceptors/browser/index.tsUint8Array.byteLengthmeta.size.bodyfield in Relay responseNotes to reviewers
body instanceof ArrayBuffervsUint8Arraymight be ambiguous in some environments.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.