Skip to content

Commit

Permalink
chore: improved formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
analog-nico committed May 16, 2016
1 parent 7a5522f commit 364ec40
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ rp(options)

### POST data to a JSON REST API

Set option.body to data, and json:true to encode the body as JSON. See below
for HTML forms.

Set `option.body` to your data and `json: true` to encode the body as JSON. See below for HTML forms.

``` js
var options = {
Expand All @@ -127,7 +125,7 @@ rp(options)

### POST like HTML forms do

Set option.form to encode the body as HTML form
Set `option.form` to your data to encode the body the same way as HTML forms do.

``` js
var options = {
Expand Down

0 comments on commit 364ec40

Please sign in to comment.