Permalink
Browse files

Add error to args in docs.

  • Loading branch information...
paulmillr committed Mar 16, 2013
1 parent 1990a96 commit 8ca4d06e0f13aaa5fd9eaee8e26c71c9282d4148
Showing with 2 additions and 2 deletions.
  1. +2 −2 Readme.md
View
@@ -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){
});
```

0 comments on commit 8ca4d06

Please sign in to comment.