From 55a33bc40867653b36a83e46c2d613936e975198 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 31 Jan 2018 23:54:06 +0000 Subject: [PATCH] Add HEAD to list of methods with no body in http req node --- 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 52cef215a..6737b676e 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 (method !== 'GET' && typeof msg.payload !== "undefined") { + if (method !== 'GET' && method !== 'HEAD' && typeof msg.payload !== "undefined") { if (typeof msg.payload === "string" || Buffer.isBuffer(msg.payload)) { payload = msg.payload; } else if (typeof msg.payload == "number") {