You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2019. It is now read-only.
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?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I want to send POST requests using the request
body
and theContent-Type: application/json
header.Restful.js always populate the request
form
and the http client request executes the request as aapplication/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
orform
would be better.Is that a viable solution?
The text was updated successfully, but these errors were encountered: