mirror of https://github.com/node-red/node-red.git
parent
cb0c484579
commit
2ccd4b5224
|
@ -132,7 +132,7 @@ in your Node-RED user directory (${RED.settings.userDir}).
|
|||
const matchingKeys = keys.filter(e => e.toLowerCase() == hn)
|
||||
const updateKey = (k,v) => {
|
||||
delete headersObject[k]; //delete incase of case change
|
||||
if(v) { headersObject[name] = v } //re-add with requested name & value
|
||||
if(v || v === '') { headersObject[name] = v } //re-add with requested name & value
|
||||
}
|
||||
if(matchingKeys.length == 0) {
|
||||
updateKey(name, value)
|
||||
|
|
Loading…
Reference in New Issue