[PR #4932] [MERGED] fix: import bug with extension and agent interceptors #4994

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4932
Author: @nivedin
Created: 3/24/2025
Status: Merged
Merged: 3/28/2025
Merged by: @jamesgeorge007

Base: nextHead: fix/interceptor-bug-while-import


📝 Commits (5)

  • 814c3c0 fix: header send as undefined bug in extension
  • fbb6b72 chore: add user-agent header while fetching via agent
  • 436bce1 fix(common): set user-agent for native interceptor
  • ee22a7e fix: comment
  • c84cd03 fix(common): avoid overriding existing User-Agent

📊 Changes

4 files changed (+35 additions, -5 deletions)

View changed files

📝 packages/hoppscotch-common/src/components.d.ts (+0 -2)
📝 packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts (+17 -1)
📝 packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/index.ts (+1 -1)
📝 packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/index.ts (+17 -1)

📄 Description

Closes HFE-789

This PR fixes the issue where the OpenAPI URL and Gist import failed when using extension and Agent as interceptors. Also, extends it to the Desktop App alongside Native interceptor.

Todo

  • OpenAPI spec import via URL with the interceptor set to Browser extension
  • GitHub Gist failing to import with the interceptor set to Agent

🔄 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/4932 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 3/24/2025 **Status:** ✅ Merged **Merged:** 3/28/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `fix/interceptor-bug-while-import` --- ### 📝 Commits (5) - [`814c3c0`](https://github.com/hoppscotch/hoppscotch/commit/814c3c0cf54f8bbaabcadb1d1970aaed919ad288) fix: header send as undefined bug in extension - [`fbb6b72`](https://github.com/hoppscotch/hoppscotch/commit/fbb6b722097b4117792ccdfe70952b73bd877ece) chore: add user-agent header while fetching via agent - [`436bce1`](https://github.com/hoppscotch/hoppscotch/commit/436bce1f2cf56730ede4276d2a7b558ee6a33b79) fix(common): set `user-agent` for `native` interceptor - [`ee22a7e`](https://github.com/hoppscotch/hoppscotch/commit/ee22a7e671bb20dd4d859c8203a43b8bafbda1e6) fix: comment - [`c84cd03`](https://github.com/hoppscotch/hoppscotch/commit/c84cd03caafba07c35221a33d704b05c5ddc2920) fix(common): avoid overriding existing `User-Agent` ### 📊 Changes **4 files changed** (+35 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/components.d.ts` (+0 -2) 📝 `packages/hoppscotch-common/src/platform/std/kernel-interceptors/agent/index.ts` (+17 -1) 📝 `packages/hoppscotch-common/src/platform/std/kernel-interceptors/extension/index.ts` (+1 -1) 📝 `packages/hoppscotch-common/src/platform/std/kernel-interceptors/native/index.ts` (+17 -1) </details> ### 📄 Description Closes HFE-789 This PR fixes the issue where the OpenAPI URL and Gist import failed when using extension and Agent as interceptors. Also, extends it to the Desktop App alongside `Native` interceptor. ### Todo - [x] OpenAPI spec import via URL with the interceptor set to Browser extension - [x] GitHub Gist failing to import with the interceptor set to Agent --- <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:55 +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#4994
No description provided.