🐛 Make sure that header keys are always lower case #2663

This commit is contained in:
Jan Oberhauser 2022-01-21 10:55:19 +01:00
parent 55139a4e6c
commit 1566dafb3e

View file

@ -851,6 +851,9 @@ export class HttpRequest implements INodeType {
}
};
requestOptions[optionName][parameterDataName] = computeNewValue(requestOptions[optionName][parameterDataName]);
} else if (optionName === 'headers') {
// @ts-ignore
requestOptions[optionName][parameterDataName.toString().toLowerCase()] = newValue;
} else {
// @ts-ignore
requestOptions[optionName][parameterDataName] = newValue;