[PR #4977] [MERGED] feat(common): enhanced cookie parsing from curl arguments #5009

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4977
Author: @anwarulislam
Created: 4/9/2025
Status: Merged
Merged: 4/10/2025
Merged by: @jamesgeorge007

Base: patchHead: fix/curl-chrome-import-issue


📝 Commits (1)

  • ec7d153 feat: enhance cookie parsing from curl arguments

📊 Changes

2 files changed (+69 additions, -17 deletions)

View changed files

📝 packages/hoppscotch-common/src/helpers/curl/curlparser.ts (+17 -2)
📝 packages/hoppscotch-common/src/helpers/curl/sub_helpers/cookies.ts (+52 -15)

📄 Description

Closes HFE-805 #4961

What's changed

This pull request addresses an issue with the handling of cookies in cURL requests. The current behavior fails when cookies are set using the -b option without the appropriate -H header. This fix ensures that cookies are correctly processed.

  • Not Completed
  • Completed

🔄 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/4977 **Author:** [@anwarulislam](https://github.com/anwarulislam) **Created:** 4/9/2025 **Status:** ✅ Merged **Merged:** 4/10/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix/curl-chrome-import-issue` --- ### 📝 Commits (1) - [`ec7d153`](https://github.com/hoppscotch/hoppscotch/commit/ec7d153e993d2f2465976e5cf62c05acc0525a74) feat: enhance cookie parsing from curl arguments ### 📊 Changes **2 files changed** (+69 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/curl/curlparser.ts` (+17 -2) 📝 `packages/hoppscotch-common/src/helpers/curl/sub_helpers/cookies.ts` (+52 -15) </details> ### 📄 Description Closes HFE-805 #4961 ### What's changed This pull request addresses an issue with the handling of cookies in cURL requests. The current behavior fails when cookies are set using the `-b` option without the appropriate `-H` header. This fix ensures that cookies are correctly processed. - [ ] Not Completed - [x] Completed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:29:44 +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#5009
No description provided.