mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
⚡ Make it possible to return string via Webhook-Node
This commit is contained in:
parent
8528c2a2f1
commit
0918106328
|
@ -64,7 +64,11 @@ export function sendSuccessResponse(res: Response, data: any, raw?: boolean, res
|
|||
}
|
||||
|
||||
if (raw === true) {
|
||||
res.json(data);
|
||||
if (typeof data === 'string') {
|
||||
res.send(data);
|
||||
} else {
|
||||
res.json(data);
|
||||
}
|
||||
} else {
|
||||
res.json({
|
||||
data,
|
||||
|
|
Loading…
Reference in a new issue