Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed README

  • Loading branch information...
commit 6c22041a4719bf081c827dda8f35e7b79b4c39d9 1 parent 7daf841
alessioalex authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -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')
})
Please sign in to comment.
Something went wrong with that request. Please try again.