Skip to content
Snippets Groups Projects
Commit 4e642ded authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

workaround bug in node 0.4.x - res.getHeader() throws an exception when...

workaround bug in node 0.4.x - res.getHeader() throws an exception when invoked after a response is set, even though you're not mutating the response.  instead use the _headers map.
parent d924570a
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment