mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
🐛 Fix sending none JSON data bug
This commit is contained in:
@@ -697,12 +697,8 @@ export class HttpRequest implements INodeType {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
// @ts-ignore
|
||||||
// @ts-ignore
|
requestOptions[optionData.name] = tempValue;
|
||||||
requestOptions[optionData.name] = JSON.parse(tempValue as string);
|
|
||||||
} catch (error) {
|
|
||||||
throw new Error(`${optionData.name} must be a valid JSON`);
|
|
||||||
}
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (typeof requestOptions[optionData.name] !== 'object' && options.bodyContentType !== 'raw') {
|
if (typeof requestOptions[optionData.name] !== 'object' && options.bodyContentType !== 'raw') {
|
||||||
|
|||||||
Reference in New Issue
Block a user