Fix for Issue#45

This commit is contained in:
Dave Conway-Jones 2013-10-23 08:42:14 +01:00
parent dc0d62cb28
commit 30f3a46d46
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,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") {