-
-
Save lucasvo/62130ea2c7ba00bb7f6f to your computer and use it in GitHub Desktop.
This file contains 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
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