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

Incorrect reference to routes in http in node

Fixes #503
This commit is contained in:
Nick O'Leary 2014-11-28 10:09:38 +00:00
parent 3a78a2fedd
commit da7b3ce9e4

View File

@ -94,11 +94,11 @@ module.exports = function(RED) {
}
}
if (RED.settings.httpNodeCors) {
var route = RED.httpNode.route['options'];
if (route) {
for (var j = 0; j<route.length; j++) {
if (route[j].path == this.url) {
route.splice(j,1);
var routes = RED.httpNode.routes['options'];
if (routes) {
for (var j = 0; j<routes.length; j++) {
if (routes[j].path == this.url) {
routes.splice(j,1);
//break;
}
}