1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Handle HTTP In url that is missing its leading /

Fixes #1218
This commit is contained in:
Nick O'Leary 2017-05-15 14:10:06 +01:00
parent 8a7bb1be9f
commit 9d4139085b
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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;