We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0dccfd1 + 2f522af commit 9523ba9Copy full SHA for 9523ba9
packages/service/core/workflow/dispatch/tools/http468.ts
@@ -140,7 +140,8 @@ export const dispatchHttp468Request = async (props: HttpRequestProps): Promise<H
140
141
if (typeof val === 'string') {
142
if (isQuoted) {
143
- return val.replace(/(?<!\\)"/g, '\\"');
+ // Replace newlines with escaped newlines
144
+ return val.replace(/\n/g, '\\n').replace(/(?<!\\)"/g, '\\"');
145
}
146
try {
147
JSON.parse(val);
0 commit comments