Currently, the Request.post() function of the browser runtime and nodejs runtime work differently, which should not be the case.
I.e. in order to provide the payload, the function of the browser runtime needs an options object with a body property being the payload, while for the nodejs runtime, the options object itself is the payload.
Please find a common spec and modify the functions accordingly.
Mentioning all people that worked on the the relevant code parts: @dvilchez @vitormsilva @jboulmal
Currently, the Request.post() function of the browser runtime and nodejs runtime work differently, which should not be the case.
I.e. in order to provide the payload, the function of the browser runtime needs an
optionsobject with abodyproperty being the payload, while for the nodejs runtime, theoptionsobject itself is the payload.Please find a common spec and modify the functions accordingly.
Mentioning all people that worked on the the relevant code parts: @dvilchez @vitormsilva @jboulmal