diff --git a/lib/wsapi/authenticate_user.js b/lib/wsapi/authenticate_user.js index 28af6a73598bf0c7d890d50a1f78dca3b7fec7c4..c25e44e60c3ee7636934ef910d9e401a8d283963 100644 --- a/lib/wsapi/authenticate_user.js +++ b/lib/wsapi/authenticate_user.js @@ -55,7 +55,7 @@ exports.process = function(req, res) { path: '/wsapi/update_password', method: "POST", headers: { - 'Cookie': res.getHeader('set-cookie'), + 'Cookie': res._headers['set-cookie'], 'Content-Type': 'application/x-www-form-urlencoded', 'Content-Length': post_body.length }