[GH-ISSUE #527] [BUG] Duplicate query keys are ignored when editing a request #526

Open
opened 2026-03-03 19:19:32 +03:00 by kerem · 3 comments
Owner

Originally created by @adietrichs on GitHub (Jun 18, 2020).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/527

Originally assigned to: @NghiaTranUIT on GitHub.

Proxyman version

2.0.1

Steps to reproduce

  1. Tools -> Compose Request
  2. Enter URL: https://postman-echo.com/get?foo=bar1&foo=bar2
  3. Select Query tab
  4. Change bar1 to bar
  5. Notice URL change to https://postman-echo.com/get?foo=bar2, ignoring the (duplicate) first foo parameter

Expected behavior

URL should change to https://postman-echo.com/get?foo=bar&foo=bar2.
Duplicate keys are generally used to encode arrays, see e.g. this for context.

Originally created by @adietrichs on GitHub (Jun 18, 2020). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/527 Originally assigned to: @NghiaTranUIT on GitHub. ### Proxyman version 2.0.1 ### Steps to reproduce 1. Tools -> Compose Request 2. Enter URL: `https://postman-echo.com/get?foo=bar1&foo=bar2` 3. Select Query tab 4. Change `bar1` to `bar` 5. Notice URL change to `https://postman-echo.com/get?foo=bar2`, ignoring the (duplicate) first `foo` parameter ### Expected behavior URL should change to `https://postman-echo.com/get?foo=bar&foo=bar2`. Duplicate keys are generally used to encode arrays, see e.g. [this](https://stackoverflow.com/questions/1746507/authoritative-position-of-duplicate-http-get-query-keys) for context.
Author
Owner

@NghiaTranUIT commented on GitHub (Jun 18, 2020):

Thanks. I'm looking on it now 👍

<!-- gh-comment-id:645995229 --> @NghiaTranUIT commented on GitHub (Jun 18, 2020): Thanks. I'm looking on it now 👍
Author
Owner

@NghiaTranUIT commented on GitHub (Jun 18, 2020):

Hey @adietrichs let try this beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.0.1_Fix_Duplicated_Query_Repeat_Tool.dmg

I used to use URLEncoding from Alamofire, and it accidentally removes the duplicated keys since it stores as a Dictionary. I fixed it 🙌

Screen_Shot_2020-06-18_at_21_37_07
<!-- gh-comment-id:646072608 --> @NghiaTranUIT commented on GitHub (Jun 18, 2020): Hey @adietrichs let try this beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.0.1_Fix_Duplicated_Query_Repeat_Tool.dmg I used to use URLEncoding from Alamofire, and it accidentally removes the duplicated keys since it stores as a Dictionary. I fixed it 🙌 <img width="2027" alt="Screen_Shot_2020-06-18_at_21_37_07" src="https://user-images.githubusercontent.com/5878421/85036078-1bf9c100-b1ae-11ea-89a7-bedb37dd4016.png">
Author
Owner

@adietrichs commented on GitHub (Jun 18, 2020):

I am really impressed by the quick response!
The fixed version looks good to me & works as expected.

<!-- gh-comment-id:646331610 --> @adietrichs commented on GitHub (Jun 18, 2020): I am really impressed by the quick response! The fixed version looks good to me & works as expected.
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/Proxyman#526
No description provided.