docs: fix typo in curl command, include content-type header (#22256)
Typo: the `'` char was located at the wrong place. The`curl` command, without specifying the content-type headers, complains about invalid content type.
This commit is contained in:
parent
2c81e00ea7
commit
9ae849f87f
|
@ -260,7 +260,7 @@ When using the console:
|
||||||
or via RPC:
|
or via RPC:
|
||||||
```
|
```
|
||||||
# Request
|
# Request
|
||||||
$ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1} http://127.0.0.1:8545'
|
$ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_accounts","params":[],"id":1}' -H 'Content-type: application/json' http://127.0.0.1:8545
|
||||||
|
|
||||||
# Result
|
# Result
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue