Open
Description
I have checked the following:
- I have searched existing issues and found nothing related to my issue.
This bug is:
- making Bruno unusable for me
- slowing me down but I'm able to continue working
- annoying
- this feature was working in a previous version but is broken in the current release.
Bruno version
2.6.1
Operating System
Windows 11 10.0.26100
Describe the bug
"Generate Code" for a GET request with array parameters adds extra parameter.
- Create a new request for
https://postman-echo.com/get?codes[]=1
- Execute the request and use
Timeline
to verify the request was sent as-specified - Click
Generate Code
to confirm the generated request is correct.
Expected: generated code creates the same request that was actually executed.
Actual: generated code adds an extra &codes=1
to the URL.
Request per timeline: https://postman-echo.com/get?codes[]=1
Generated Code for curl (others similar):
curl --request GET \
--url 'https://postman-echo.com/get?codes%5B%5D=1&codes=1'
.bru file to reproduce the bug
meta {
name: Test GET array params
type: http
seq: 4
}
get {
url: https://postman-echo.com/get?codes[]=1
body: none
auth: inherit
}
params:query {
codes[]: 1
}