Skip to content

Commit 900de50

Browse files
author
Alan Shaw
authored
fix: curl http header arg name (#2308)
resolves #2289
1 parent 0f9bf56 commit 900de50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/website/pages/docs/how-tos

packages/website/pages/docs/how-tos/store.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ When using `curl`, it's important to set the `--data-binary` flag. A common mist
284284
</Callout>
285285

286286
```bash
287-
curl --headers "Authorization: Bearer $API_TOKEN" --data-binary @mydata.car
287+
curl --header "Authorization: Bearer $API_TOKEN" --data-binary @mydata.car
288288
```
289289

290-
The above example uses the generic `--headers` flag to set the `Authorization` header, since setting headers is supported by all HTTP clients. If you are using `curl`, you can optionally use the more consise `--oauth2-bearer` flag:
290+
The above example uses the generic `--header` flag to set the `Authorization` header, since setting headers is supported by all HTTP clients. If you are using `curl`, you can optionally use the more consise `--oauth2-bearer` flag:
291291

292292
```bash
293293
curl --oauth2-bearer $API_TOKEN --data-binary @mydata.car

0 commit comments

Comments
 (0)