mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
🐛 Fix bug that HTTP Request node did process JSON incorrectly
This commit is contained in:
parent
904ecc31e3
commit
699cd25615
|
@ -513,7 +513,7 @@ export class HttpRequest implements INodeType {
|
||||||
const fileName = (url).split('/').pop();
|
const fileName = (url).split('/').pop();
|
||||||
|
|
||||||
items[itemIndex].binary![dataPropertyName] = await this.helpers.prepareBinaryData(response, fileName);
|
items[itemIndex].binary![dataPropertyName] = await this.helpers.prepareBinaryData(response, fileName);
|
||||||
} else if (responseFormat === 'json') {
|
} else if (responseFormat === 'string') {
|
||||||
const dataPropertyName = this.getNodeParameter('dataPropertyName', 0) as string;
|
const dataPropertyName = this.getNodeParameter('dataPropertyName', 0) as string;
|
||||||
|
|
||||||
returnItems.push({
|
returnItems.push({
|
||||||
|
|
Loading…
Reference in a new issue