From 07a5d3626e5d7be3effa5240a7337f9071a8a08a Mon Sep 17 00:00:00 2001 From: Nicholas O'Leary Date: Mon, 11 Nov 2013 14:25:50 +0000 Subject: [PATCH] Typo in HTTP Request Node prevents POSTs fixes #68 --- 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 0d71a8723..db3d99e36 100644 --- a/nodes/io/21-httpin.js +++ b/nodes/io/21-httpin.js @@ -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") {