This repository has been archived by the owner on Nov 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 157
Can not get correct userctx #342
Comments
However, following code gets the same correct userCtx with the browser: require! \nano
conn = nano cfg.url
err, body, headers <- conn.auth cfg.user.name, cfg.user.password
return console.log "err", err if err
if headers and headers.\set-cookie
cfg.cookie = headers.\set-cookie
else
return console.error "We got no cookie?", headers
sconn = nano do
url: cfg.url
cookie: cfg.cookie
err, session <- sconn.session
return console.error "Err: ", err if err
console.log 'Session is: ', session |
This repository has been merged into apache/couchdb-nano, please continue the discussion here |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I open the example.com/_session, it returns:
But when I use the following code:
body returns
Which is not correct.
Edit
Following bash script also returns same response with nano:
So the problem might not be related with nano itself, it might be a setup issue.
The text was updated successfully, but these errors were encountered: