From 36d7ab474e4a8baf3c41e509e11f21665747d745 Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 18 Jul 2017 20:04:34 +0200 Subject: [PATCH] client::auth: fix base64 encoding --- src/client/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/auth.rs b/src/client/auth.rs index 8716fea7..a366b2ff 100644 --- a/src/client/auth.rs +++ b/src/client/auth.rs @@ -74,7 +74,7 @@ impl ClientAuth { .ns(NS_XMPP_SASL); let nonza = attrs.iter() .fold(nonza, |nonza, &(name, value)| nonza.attr(name, value)) - .append(content.to_base64(base64::URL_SAFE)) + .append(content.to_base64(base64::STANDARD)) .build(); let send = stream.send(Packet::Stanza(nonza));