Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

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

Open
luoyuhao0x58 opened this issue Nov 28, 2017 · 2 comments
Open

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

luoyuhao0x58 opened this issue Nov 28, 2017 · 2 comments

Comments

@luoyuhao0x58
Copy link

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

@stepli1010
Copy link

same to you

@wtl1019
Copy link

wtl1019 commented May 25, 2018

same question

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants