req-fast
req-fast copied to clipboard
req with POST doesn't work properly following doc
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.