Skip to content

req with POST doesn't work properly following doc #17

@cheahkhing

Description

@cheahkhing

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions