Typo in HTTP Request Node prevents POSTs

fixes #68
This commit is contained in:
Nicholas O'Leary 2013-11-11 14:25:50 +00:00
parent 29734dd994
commit 07a5d3626e
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ function HTTPRequest(n) {
msg.statusCode = err.code;
node.send(msg);
});
if (msg.payload && (method == "PUSH" || method == "PUT") ) {
if (msg.payload && (method == "POST" || method == "PUT") ) {
if (typeof msg.payload === "string" || Buffer.isBuffer(msg.payload)) {
req.write(msg.payload);
} else if (typeof msg.payload == "number") {