Skip to content

Commit

Permalink
Merge pull request ladjs#191 from paulmillr/patch-1
Browse files Browse the repository at this point in the history
Add error to args in docs.
  • Loading branch information
tj committed Mar 16, 2013
2 parents 1990a96 + 8ca4d06 commit f8fc259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Expand Up @@ -49,15 +49,15 @@ request
.send({ name: 'Manny', species: 'cat' })
.set('X-API-Key', 'foobar')
.set('Accept', 'application/json')
.end(function(res){
.end(function(error, res){

});
```

building on the existing API internally we also provide something similar to `$.post()` for those times in life where your interactions are very basic:

```js
request.post('/api/pet', cat, function(res){
request.post('/api/pet', cat, function(error, res){

});
```
Expand Down

0 comments on commit f8fc259

Please sign in to comment.