Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
9523ba92
authored
Mar 10, 2025
by
Archer
Committed by
GitHub
Mar 10, 2025
Browse files
Options
Browse Files
Download
Plain Diff
perf: HTTP node jsonBody support \n (#4070)
parents
0dccfd17
2f522aff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
packages/service/core/workflow/dispatch/tools/http468.ts
+2
-1
No files found.
packages/service/core/workflow/dispatch/tools/http468.ts
View file @
9523ba92
...
...
@@ -140,7 +140,8 @@ export const dispatchHttp468Request = async (props: HttpRequestProps): Promise<H
if
(
typeof
val
===
'string'
)
{
if
(
isQuoted
)
{
return
val
.
replace
(
/
(?<
!
\\)
"/g
,
'\\"'
);
// Replace newlines with escaped newlines
return
val
.
replace
(
/
\n
/g
,
'\\n'
).
replace
(
/
(?<
!
\\)
"/g
,
'\\"'
);
}
try
{
JSON
.
parse
(
val
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment