mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Doc: Update curl command to fix 400 Bad Request (#11911)
This commit is contained in:
parent
0e4ba37b6c
commit
0526f461e1
@ -118,7 +118,7 @@ Set the `Authorization` header to the authentication token to fetch a key using
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -L http://localhost:2379/v3/kv/put \
|
curl -L http://localhost:2379/v3/kv/put \
|
||||||
-H 'Authorization : sssvIpwfnLAcWAQH.9' \
|
-H 'Authorization: sssvIpwfnLAcWAQH.9' \
|
||||||
-X POST -d '{"key": "Zm9v", "value": "YmFy"}'
|
-X POST -d '{"key": "Zm9v", "value": "YmFy"}'
|
||||||
# {"header":{"cluster_id":"14841639068965178418","member_id":"10276657743932975437","revision":"2","raft_term":"2"}}
|
# {"header":{"cluster_id":"14841639068965178418","member_id":"10276657743932975437","revision":"2","raft_term":"2"}}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user