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

POST body as an Array not works #324

@fritx

Description

@fritx

In Devtools, Request Payload becomes [object Object]
Vue-resource version: 0.9.3

// this works
const data = [{}, {}, {}]
const body = JSON.stringify(data)
return Vue.http({ url, method, body })

// doesn't work
const body = [{}, {}, {}]
return Vue.http({ url, method, body })
}

JSON.stringify is required, which is annoying.
However, both work if POST body as Object.
Is anything to be improved?
Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions