From 5f4f6e37b5c25778661b425dd73ab32dc49df700 Mon Sep 17 00:00:00 2001 From: Hugobox Date: Fri, 22 Dec 2017 05:16:39 -0500 Subject: [PATCH] HTTP REQUEST: Adding PROPPATCH and PROPFIND http methods (#1531) * HTTP REQUEST: Adding PROPPATCH and PROPFIND http methods * Removed method check --- nodes/core/io/21-httprequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/core/io/21-httprequest.js b/nodes/core/io/21-httprequest.js index f7e873c99..5d6fea41b 100644 --- a/nodes/core/io/21-httprequest.js +++ b/nodes/core/io/21-httprequest.js @@ -135,7 +135,7 @@ module.exports = function(RED) { } var payload = null; - if (typeof msg.payload !== "undefined" && (method == "POST" || method == "PUT" || method == "PATCH" ) ) { + if (typeof msg.payload !== "undefined") { if (typeof msg.payload === "string" || Buffer.isBuffer(msg.payload)) { payload = msg.payload; } else if (typeof msg.payload == "number") {