mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix http in node close wrinkle if cors enabled but not used.
This commit is contained in:
parent
98b875c4a0
commit
a1830def8e
@ -95,10 +95,12 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
if (RED.settings.httpNodeCors) {
|
if (RED.settings.httpNodeCors) {
|
||||||
var route = RED.httpNode.route['options'];
|
var route = RED.httpNode.route['options'];
|
||||||
for (var j = 0; j<route.length; j++) {
|
if (route) {
|
||||||
if (route[j].path == this.url) {
|
for (var j = 0; j<route.length; j++) {
|
||||||
route.splice(j,1);
|
if (route[j].path == this.url) {
|
||||||
//break;
|
route.splice(j,1);
|
||||||
|
//break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user