mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
⚡ Make it possible to return string via Webhook-Node
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user