Open
Description
Current behavior
When calling cy.request with the qs option, if multiple keys of the same name are utilized in the query, cypress only uses one of them in the resulting URI.
Desired behavior
Cypress should take all query key/value pairs, regardless of if any keys are duplicated, since this is valid in a URI.
Test code to reproduce
cy.request({
method: "POST",
url: "www.google.com/api",
qs: {
"someKey": "value1",
"someKey": "value2",
}})
This should result in a POST to www.google.com/api?someKey=value1&someKey=value2, but instead results in a POST to http://www.google.com/api?someKey=value2
Cypress Version
8.2.0
Other
No response
Activity