Open lohfu opened 2 weeks ago
it doesn't seem to be a bug, it is intended, it is not theoretically possible for for an object to have same keys, keys are supposed to be unique. You can try a workaround, like use an index with the key.
It is a bug with non-theoretical repercussions :) . It was reported already as #2192 (with potential fix down the line).
Have you tried what[]
as the name of both keys? Does that give you what you're looking for?
@hunxjunedo i am pretty sure the http spec allows one key to have several values. It isn't a regular object, more a key/value string. Setting multiple values for a query param works fine in Bruno, and Form URL Encoded essential;y encodes data exactly the same way as a query string.
I have checked the following:
Describe the bug
If you define two values with the same key, only the last key will be sent.
My current use case for this is testing the api for form that has multiple checkboxes with the same name.
.bru file to reproduce the bug
No response
Screenshots/Live demo link
Bruno
Sending
results in
![image](https://github.com/usebruno/bruno/assets/7393351/bd207d98-c532-4758-9ce3-15a08adffca9)
Postman
Sending
results in
![image](https://github.com/usebruno/bruno/assets/7393351/a49a0583-b330-4b9f-8469-38b44e37298d)