[PR #2606] [MERGED] fix: form data with same key send only last one #3933

Closed
opened 2026-03-17 01:30:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2606
Author: @nivedin
Created: 8/22/2022
Status: Merged
Merged: 8/22/2022
Merged by: @AndrewBastin

Base: mainHead: fix/form-data-send-last-one


📝 Commits (4)

  • f280a45 fix: form data with same key send only last one
  • 53cea4c refactor: improve code syntax
  • db27ac8 chore: rename to tupleWithSameKeysToRecord
  • d7fbcd2 chore: add reasons for as assertions

📊 Changes

2 files changed (+75 additions, -20 deletions)

View changed files

📝 packages/hoppscotch-app/helpers/functional/record.ts (+36 -1)
📝 packages/hoppscotch-app/helpers/utils/EffectiveURL.ts (+39 -19)

📄 Description

Closes #2571

Description

This PR fixes the issue when using application/x-www-from-urlencoded as content-type to send form data, when you fill in duplicate key names, only the last key was sent.

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

🔄 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/2606 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 8/22/2022 **Status:** ✅ Merged **Merged:** 8/22/2022 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `main` ← **Head:** `fix/form-data-send-last-one` --- ### 📝 Commits (4) - [`f280a45`](https://github.com/hoppscotch/hoppscotch/commit/f280a45a4a44bdeee5735c3390060bb8bcd69b96) fix: form data with same key send only last one - [`53cea4c`](https://github.com/hoppscotch/hoppscotch/commit/53cea4c7bf60c04cf21757218f0a804eaeb35a20) refactor: improve code syntax - [`db27ac8`](https://github.com/hoppscotch/hoppscotch/commit/db27ac8dc659460a7b93437fdae0d8a910c54c90) chore: rename to tupleWithSameKeysToRecord - [`d7fbcd2`](https://github.com/hoppscotch/hoppscotch/commit/d7fbcd20b6a0f7f1f55685812c418afdcfe4ad35) chore: add reasons for as assertions ### 📊 Changes **2 files changed** (+75 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/helpers/functional/record.ts` (+36 -1) 📝 `packages/hoppscotch-app/helpers/utils/EffectiveURL.ts` (+39 -19) </details> ### 📄 Description Closes #2571 ### Description This PR fixes the issue when using `application/x-www-from-urlencoded` as content-type to send form data, when you fill in duplicate key names, only the last key was sent. ### Checks - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:30:26 +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#3933
No description provided.