Skip to content

Commit

Permalink
changed README
Browse files Browse the repository at this point in the history
  • Loading branch information
alessioalex committed Nov 12, 2011
1 parent 7daf841 commit 6c22041
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ request('http://www.google.com', function () {
OR
```javascript
var j = request.jar()
// you can also set a cookie like so:
j.add('sid=LsoJ7tV9wfwz2VkE9lxC4EqU.%2BXxV0F9i1hfCMb4uNKZTpAUJLTwlf57FewvHne%2BAGVI; path=/; expires=Sun, 23 Nov 2011 16:50:21 GMT; httpOnly')
var cookie = request.cookie('sid=LsoJ7tV9wfwz2VkE9lxC4EqU.%2BXxV0F9i1hfCMb4uNKZTpAUJLTwlf57FewvHne%2BAGVI; path=/; expires=Sun, 23 Nov 2011 16:50:21 GMT; httpOnly')
j.add(cookie)
request(url: 'http://www.google.com', jar: j, function () {
request('http://images.google.com')
})
Expand Down

0 comments on commit 6c22041

Please sign in to comment.