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.
1 parent 3e7e916 commit e2e1655Copy full SHA for e2e1655
src/components/CURL.astro
@@ -41,7 +41,8 @@ if (json) {
41
42
if (form) {
43
const formLines = Object.entries(form).map(
44
- ([key, value]) => `\t--form "${key}=${value}"`,
+ ([key, value]) =>
45
+ `\t--form "${key}=${value.toString().replaceAll('"', '\\"')}"`,
46
);
47
lines.push(...formLines);
48
}
0 commit comments