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

View File

@@ -177,6 +177,9 @@ module.exports = function(RED) {
return; return;
} }
this.url = n.url; this.url = n.url;
if (this.url[0] !== '/') {
this.url = '/'+this.url;
}
this.method = n.method; this.method = n.method;
this.upload = n.upload; this.upload = n.upload;
this.swaggerDoc = n.swaggerDoc; this.swaggerDoc = n.swaggerDoc;