mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-28 00:27:26 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ When using the console:
|
|||
or via RPC:
|
||||
```
|
||||
# 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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue