req-fast icon indicating copy to clipboard operation
req-fast copied to clipboard

req with POST doesn't work properly following doc

Open cheahkhing opened this issue 4 years ago • 0 comments

Hi,

I believe it's a mistake in either the doc / code:

A simple POST request like this doesn't work: req({ url: queueUrl, headers: { 'Content-Type': 'text/xml' }, method: 'POST', data: asdfasdfasdfasdf}, ....

And the reason is due to "data" is not a valid property for options. Seems like you're using "_data" for the options. After i changed to use "_data", it works flawlessly.

cheahkhing avatar Apr 28 '20 10:04 cheahkhing