This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getTestPersonaLoginCredentials(cb) { | |
http.get({ | |
host: 'personatestuser.org', | |
path: '/email' | |
}, function(res) { | |
// explicitly treat incoming data as utf8 (avoids issues with multi-byte chars) | |
res.setEncoding('utf8'); | |
// incrementally capture the incoming response body |