Skip to content

Commit

Permalink
smtp: plain-auth-string should return a ... string.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Sep 29, 2012
1 parent c49ed40 commit 61feee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basis/smtp/smtp.factor
Expand Up @@ -146,7 +146,7 @@ GENERIC: send-auth ( auth -- )
M: no-auth send-auth drop ;

: plain-auth-string ( username password -- string )
[ "\0" prepend ] bi@ append utf8 encode >base64 ;
[ "\0" prepend ] bi@ append utf8 encode >base64 >string ;

M: plain-auth send-auth
[ username>> ] [ password>> ] bi plain-auth-string
Expand Down

0 comments on commit 61feee6

Please sign in to comment.