visionmedia/superagent — pull request #354 by vsuhanov (2014-04-04 13:45:36+00:00)
Title: fixed #314. callback that sets agents cookies is now executed before users callback in .end()

Had to rearrange request.on('response') listeners to save cookie before users callback passed to .end() is executed. Otherwise consecutive request doesn't send cookies.