mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4112] [MERGED] fix: headers having different values with the same key are not shown #4667
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#4667
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/4112
Author: @AndrewBastin
Created: 6/6/2024
Status: ✅ Merged
Merged: 6/12/2024
Merged by: @nivedin
Base:
patch← Head:fix/set-cookie-multiple📝 Commits (3)
4a394acfeat: allow ability for multiple headers with the same key to be shown3b295f8chore: remove extension inspector in selfhost-desktopbb4b5d2chore: cleanup📊 Changes
5 files changed (+34 additions, -19 deletions)
View changed files
📝
packages/hoppscotch-common/src/components.d.ts(+6 -7)📝
packages/hoppscotch-common/src/helpers/network.ts(+7 -8)📝
packages/hoppscotch-common/src/services/interceptor.service.ts(+16 -0)📝
packages/hoppscotch-selfhost-desktop/src/main.ts(+0 -4)📝
packages/hoppscotch-selfhost-desktop/src/platform/interceptors/native.ts(+5 -0)📄 Description
Closes HFE-472
Closes #3532
When multiple values are sent for the same header, the current behaviour only shows one value (due to us following Axios' Response schema in the interceptor level), this is especially used for the
Set-Cookieheader. This PR implements so multiple values for the same header are shown in the UI. This is currently only implemented for the Desktop App's Native Interceptor, but can be extended in the future for Proxy once that has support for this.What's Changed
additional.multiHeadersfield to InterceptorNetworkResponsetype to store the multi header data if the interceptor supports it.NetworkResponsetoHoppRESTResponse, theadditional.multiHeadersfield is read if present and if so, its contents are selected instead of the AxiosResponse type's header definition.additional.multiHeaderfield for responses.selfhost-desktopas extension is not applicable to it.Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.