Skip to content

Commit

Permalink
Fix spelling mistake in the docs (#1232)
Browse files Browse the repository at this point in the history
Also clarify in the docs that the default example sends a JSON upload,
not a form-urlencoded upload.
  • Loading branch information
kevinburke authored and focusaurus committed May 23, 2017
1 parent 340a4bf commit ea35c57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Works with [browserify](https://github.com/substack/node-browserify) and should
```js
request
.post('/api/pet')
.send({ name: 'Manny', species: 'cat' })
.send({ name: 'Manny', species: 'cat' }) // sends a JSON post body
.set('X-API-Key', 'foobar')
.set('Accept', 'application/json')
.end(function(err, res){
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ A typical JSON __POST__ request might look a little like the following, where we
.send('{"name":"tj","pet":"tobi"}')
.end(callback)

Since JSON is undoubtably the most common, it's the _default_! The following example is equivalent to the previous.
Since JSON is undoubtedly the most common, it's the _default_! The following example is equivalent to the previous.

request.post('/user')
.send({ name: 'tj', pet: 'tobi' })
Expand Down

0 comments on commit ea35c57

Please sign in to comment.