From 9d4139085b81d477d116c63f425e93628c1851c8 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 15 May 2017 14:10:06 +0100 Subject: [PATCH] Handle HTTP In url that is missing its leading / Fixes #1218 --- nodes/core/io/21-httpin.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nodes/core/io/21-httpin.js b/nodes/core/io/21-httpin.js index 57c8f734a..76c10a7bf 100644 --- a/nodes/core/io/21-httpin.js +++ b/nodes/core/io/21-httpin.js @@ -177,6 +177,9 @@ module.exports = function(RED) { return; } this.url = n.url; + if (this.url[0] !== '/') { + this.url = '/'+this.url; + } this.method = n.method; this.upload = n.upload; this.swaggerDoc = n.swaggerDoc;