Skip to content

Instantly share code, notes, and snippets.

@lucasvo
Created April 4, 2013 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasvo/62130ea2c7ba00bb7f6f to your computer and use it in GitHub Desktop.
Save lucasvo/62130ea2c7ba00bb7f6f to your computer and use it in GitHub Desktop.
647,654c647,648
< if (requests[0].cmd === 'APPEND')
< return requests[0].callback();
< else {
< var isXOAuth2 = (cmdstr.indexOf('AUTHENTICATE XOAUTH2') === 0),
< msg = (isXOAuth2
< ? new Buffer(line.substr(2), 'base64').toString('utf8')
< : 'Unexpected continuation');
< err = new Error(msg);
---
> if (requests[0].cmd !== 'APPEND') {
> err = new Error('Unexpected continuation');
656c650
< err.type = (isXOAuth2 ? 'failure' : 'continuation');
---
> err.type = 'continuation';
658c652,653
< }
---
> } else
> return requests[0].callback();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment