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:
Benoit Perroud 2021-02-01 14:39:30 +01:00 committed by GitHub
parent 2c81e00ea7
commit 9ae849f87f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
{