vue-resource
vue-resource copied to clipboard
x-www-form-urlencoded key error when data has an array
Reproduction Link
https://jsfiddle.net/b2e111pm/
Steps to reproduce
MacOS: 10.13.1 Chrome: 62.0.3202.94 vue-resource: 1.3.4
What is Expected?
response data must be
{
"form": {
"id": [
"1",
"2"
]
}
}
What is actually happening?
{
"form": {
"id[]": [
"1",
"2"
]
}
}
key need to be "id", not "id[]"
same to you
same question