mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-23 11:44:06 -08:00
🐛 Fix issue with none-json requests (#2283)
This commit is contained in:
parent
3195e997ba
commit
9dbf6e5f6d
|
@ -337,6 +337,7 @@ async function parseRequestObject(requestObject: IDataObject) {
|
|||
axiosConfig.headers = Object.assign(axiosConfig.headers || {}, { accept: '*/*' });
|
||||
}
|
||||
if (
|
||||
requestObject.json !== false &&
|
||||
axiosConfig.data !== undefined &&
|
||||
!(axiosConfig.data instanceof Buffer) &&
|
||||
!allHeaders.some((headerKey) => headerKey.toLowerCase() === 'content-type')
|
||||
|
|
Loading…
Reference in a new issue