Get request with one-item array param, will send the value inside instead the the array #521
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
gaxios
version: 5.0.2Steps to reproduce
Send a simple
GET
request with an one-item-array as part of the params usinggaxios
http://localhost/someEndpoint?account_ids[]=Y&shopId=X
The server is getting the request (
someEndpoint
), will getaccount_ids=Y
, instead ofaccount_ids =[Y]
The
req.query.account_ids
will be equal Y instead [Y]This is happening only on arrays with one item, in multiple items are working fine
In
axios
it's working fine.The text was updated successfully, but these errors were encountered: