mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 22:12:05 +01:00
Allow to send empty responses.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2815 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
6dbc7c285e
commit
fbe77866c5
1 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,9 @@ public abstract class SASLMechanism {
|
|||
StringBuffer stanza = new StringBuffer();
|
||||
stanza.append("<response xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">");
|
||||
String authenticationText = getChallengeResponse(StringUtils.decodeBase64(challenge));
|
||||
stanza.append(StringUtils.encodeBase64(authenticationText));
|
||||
if (authenticationText != null) {
|
||||
stanza.append(StringUtils.encodeBase64(authenticationText));
|
||||
}
|
||||
stanza.append("</response>");
|
||||
|
||||
// Send the authentication to the server
|
||||
|
|
Loading…
Reference in a new issue