vue-resource icon indicating copy to clipboard operation
vue-resource copied to clipboard

x-www-form-urlencoded key error when data has an array

Open luoyuhao0x58 opened this issue 7 years ago • 2 comments

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[]"

luoyuhao0x58 avatar Nov 28 '17 10:11 luoyuhao0x58

same to you

stepli1010 avatar Jan 24 '18 10:01 stepli1010

same question

wtl1019 avatar May 25 '18 12:05 wtl1019