Skip to content

Commit

Permalink
add quotes around curl url
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jul 16, 2024
1 parent f05875e commit 5f78023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function traceFetchPost(
Object.entries(headers)
.filter(([k]) => /^(authorization|api-key)$/i.test(k))
.forEach(([k]) => (headers[k] = "***"))
const cmd = `curl -X POST ${url} \\
const cmd = `curl -X POST "${url}" \\
-H "Content-Type: application/json" \\
${Object.entries(headers)
.map(([k, v]) => `-H "${k}: ${v}" \\`)
Expand Down

0 comments on commit 5f78023

Please sign in to comment.