[PR #4911] [MERGED] fix(common): normalize headers before final relay #4983

Closed
opened 2026-03-17 02:28:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4911
Author: @CuriousCorrelation
Created: 3/19/2025
Status: Merged
Merged: 3/19/2025
Merged by: @jamesgeorge007

Base: patchHead: fix-native-interceptor-duplicate-header


📝 Commits (2)

  • 6405990 fix(common): normalize headers before final relay
  • 0785038 fix(common): missing version for native exec

📊 Changes

10 files changed (+113 additions, -79 deletions)

View changed files

📝 packages/hoppscotch-agent/src-tauri/Cargo.lock (+68 -58)
📝 packages/hoppscotch-common/src/services/oauth/flows/authCode.ts (+1 -0)
📝 packages/hoppscotch-common/src/services/oauth/flows/clientCredentials.ts (+1 -0)
📝 packages/hoppscotch-common/src/services/oauth/flows/password.ts (+1 -0)
📝 packages/hoppscotch-desktop/plugin-workspace/relay/src/content.rs (+15 -5)
📝 packages/hoppscotch-desktop/plugin-workspace/relay/src/header.rs (+17 -6)
📝 packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.lock (+2 -2)
📝 packages/hoppscotch-desktop/src-tauri/Cargo.lock (+2 -2)
📝 packages/hoppscotch-selfhost-web/package.json (+2 -2)
📝 pnpm-lock.yaml (+4 -4)

📄 Description

This PR fixes header duplication and non-normalization issues that prevent certain flows including OAuth on stricter servers.

Before After
image image

Closes HFE-786
Closes #4905

Issue affects both Native interceptor on desktop and Agent interceptor on web, PR aimed to fix both.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4911 **Author:** [@CuriousCorrelation](https://github.com/CuriousCorrelation) **Created:** 3/19/2025 **Status:** ✅ Merged **Merged:** 3/19/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix-native-interceptor-duplicate-header` --- ### 📝 Commits (2) - [`6405990`](https://github.com/hoppscotch/hoppscotch/commit/640599022db548142b988d798378cf738991f00d) fix(common): normalize headers before final relay - [`0785038`](https://github.com/hoppscotch/hoppscotch/commit/078503877998ae8c702b8222d6e91a4cca74b118) fix(common): missing `version` for native exec ### 📊 Changes **10 files changed** (+113 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-agent/src-tauri/Cargo.lock` (+68 -58) 📝 `packages/hoppscotch-common/src/services/oauth/flows/authCode.ts` (+1 -0) 📝 `packages/hoppscotch-common/src/services/oauth/flows/clientCredentials.ts` (+1 -0) 📝 `packages/hoppscotch-common/src/services/oauth/flows/password.ts` (+1 -0) 📝 `packages/hoppscotch-desktop/plugin-workspace/relay/src/content.rs` (+15 -5) 📝 `packages/hoppscotch-desktop/plugin-workspace/relay/src/header.rs` (+17 -6) 📝 `packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-relay/Cargo.lock` (+2 -2) 📝 `packages/hoppscotch-desktop/src-tauri/Cargo.lock` (+2 -2) 📝 `packages/hoppscotch-selfhost-web/package.json` (+2 -2) 📝 `pnpm-lock.yaml` (+4 -4) </details> ### 📄 Description This PR fixes header duplication and non-normalization issues that prevent certain flows including OAuth on stricter servers. | Before | After | | ------ | ------| | ![image](https://github.com/user-attachments/assets/6113f576-b0c2-490d-82e7-f54134907482) | ![image](https://github.com/user-attachments/assets/e76aa314-ec47-412e-906a-d0dc58984234) | Closes HFE-786 Closes #4905 Issue affects both `Native` interceptor on desktop and `Agent` interceptor on web, PR aimed to fix both. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:28:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4983
No description provided.