mirror of https://github.com/node-red/node-red.git
HTTP In GET error handler fix
This commit is contained in:
parent
eb90d96d65
commit
e6cf783d52
|
@ -58,7 +58,7 @@ function HTTPIn(n) {
|
||||||
else node.send({req:req,res:res});
|
else node.send({req:req,res:res});
|
||||||
}
|
}
|
||||||
if (this.method == "get") {
|
if (this.method == "get") {
|
||||||
RED.app.get(this.url,this.callback,errorHandler);
|
RED.app.get(this.url,this.callback,this.errorHandler);
|
||||||
} else if (this.method == "post") {
|
} else if (this.method == "post") {
|
||||||
RED.app.post(this.url,jsonParser,urlencParser,rawBodyParser,this.callback,this.errorHandler);
|
RED.app.post(this.url,jsonParser,urlencParser,rawBodyParser,this.callback,this.errorHandler);
|
||||||
} else if (this.method == "put") {
|
} else if (this.method == "put") {
|
||||||
|
|
Loading…
Reference in New Issue