Open nikclayton opened 2 months ago
It's possible to have an application/x-www-form-urlencoded POST request that has multiple fields with the same name.
For example, https://docs.joinmastodon.org/methods/filters/#create.
If you try and do this in Bruno only the last field value is sent.
To reproduce:
You'll see the request was data%5B%5D=two.
It should be data%5B%5D=one&data%5B%5D=two.
meta { name: filter test type: http seq: 2 }
post { url: https://mastodon.social/api/v2/filters body: formUrlEncoded auth: none }
body:form-urlencoded { data[]: one data[]: two }
N/A
Have experienced this issue as well. Sending data[0], data[1] is not viable in rails, as it interprets that as a hash instead of an array.
I have checked the following:
Describe the bug
It's possible to have an application/x-www-form-urlencoded POST request that has multiple fields with the same name.
For example, https://docs.joinmastodon.org/methods/filters/#create.
If you try and do this in Bruno only the last field value is sent.
To reproduce:
You'll see the request was data%5B%5D=two.
It should be data%5B%5D=one&data%5B%5D=two.
.bru file to reproduce the bug
meta { name: filter test type: http seq: 2 }
post { url: https://mastodon.social/api/v2/filters body: formUrlEncoded auth: none }
body:form-urlencoded { data[]: one data[]: two }
Screenshots/Live demo link
N/A