mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5025] [MERGED] fix(relay): better matching for content-type detection #5024
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#5024
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/5025
Author: @CuriousCorrelation
Created: 4/27/2025
Status: ✅ Merged
Merged: 4/29/2025
Merged by: @AndrewBastin
Base:
next← Head:feat-spec-compliant-content-type-extraction📝 Commits (3)
d12ebf1fix(kernel): better matching forcontent-typedetectiond0de03fchore(agent): bump version to0.1.1090cbc5ffix(desktop): consolidate app handle usage📊 Changes
10 files changed (+72 additions, -68 deletions)
View changed files
📝
packages/hoppscotch-agent/package.json(+1 -1)📝
packages/hoppscotch-agent/src-tauri/Cargo.lock(+2 -2)📝
packages/hoppscotch-agent/src-tauri/Cargo.toml(+1 -1)📝
packages/hoppscotch-agent/src-tauri/tauri.conf.json(+1 -1)📝
packages/hoppscotch-agent/src-tauri/tauri.portable.conf.json(+1 -1)📝
packages/hoppscotch-desktop/plugin-workspace/relay/src/response.rs(+27 -17)📝
packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.lock(+1 -1)📝
packages/hoppscotch-desktop/src-tauri/Cargo.lock(+2 -2)📝
packages/hoppscotch-desktop/src-tauri/src/lib.rs(+32 -38)📝
pnpm-lock.yaml(+4 -4)📄 Description
This PR addresses an issue where headers with different capitalizations were not being matched during
Content-Typedetection due to HTTP/2.0 middlewares (like Istio's) normalizing headers to lowercase according to RFC 7540.Closes HFE-832
Notes to reviewers
The new method iterates over all headers with
headers.iter()and then converts header keys to lowercase before comparison. Also fixes log guard ordering, to capture plugin init logs and prevent server from dropping early.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.