Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

impossible to execute POST using body #102

Open
lsimone opened this issue Dec 22, 2016 · 0 comments
Open

impossible to execute POST using body #102

lsimone opened this issue Dec 22, 2016 · 0 comments

Comments

@lsimone
Copy link

lsimone commented Dec 22, 2016

I want to send POST requests using the request body and the Content-Type: application/json header.
Restful.js always populate the request form and the http client request executes the request as a application/x-www-form-urlencoded so I receive an error. It seems impossible to cover this use case with restful.js.

In order to solve this issue, I temporally modified the code in my fork, but I guess that a parameter to choose if using body or form would be better.
Is that a viable solution?

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

1 participant