Skip to content

Commit 074ad6e

Browse files
committed
use long flags
1 parent 91f4d0c commit 074ad6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/CURL.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ const props = z.object({
1919
2020
const { method, url, headers, json, code } = props.parse(Astro.props);
2121
22-
const lines = [`curl ${url}`, `\t-X ${method}`];
22+
const lines = [`curl ${url}`, `\t--request ${method}`];
2323
2424
if (headers) {
2525
for (const [key, value] of Object.entries(headers)) {
26-
lines.push(`\t-H "${key}: ${value}"`);
26+
lines.push(`\t--header "${key}: ${value}"`);
2727
}
2828
}
2929

0 commit comments

Comments
 (0)