From bf433977cf726874705606a3c6211fae4424e731 Mon Sep 17 00:00:00 2001 From: Cerem Cem ASLAN Date: Thu, 20 Oct 2016 01:02:22 +0300 Subject: [PATCH] fixed readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d2ebc3a8..a95754ad 100644 --- a/README.md +++ b/README.md @@ -729,7 +729,7 @@ nano.auth(username, userpass, function (err, body, headers) { } if (headers && headers['set-cookie']) { - cookies[user] = headers['set-cookie']; + cookies[username] = headers['set-cookie']; } callback(null, "it worked"); @@ -742,7 +742,7 @@ reusing a cookie: var auth = "some stored cookie" , callback = console.log // this would normally be some callback , alice = require('nano')( - { url : 'http://localhost:5984/alice', cookie: 'AuthSession=' + auth }); + { url : 'http://localhost:5984/alice', cookie: auth }); ; alice.insert(doc, function (err, body, headers) {