From 30f3a46d46227cf25292c5441aa3d8c9dea0fa49 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 23 Oct 2013 08:42:14 +0100 Subject: [PATCH] Fix for Issue#45 --- nodes/io/21-httpin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/io/21-httpin.js b/nodes/io/21-httpin.js index 109638cf9..4e099d20b 100644 --- a/nodes/io/21-httpin.js +++ b/nodes/io/21-httpin.js @@ -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") {