mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
avatar: Fix parsing of avatar data containing whitespace in the base64.
This commit is contained in:
parent
1921f6819e
commit
376fa9f92e
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
use crate::hashes::Sha1HexAttribute;
|
use crate::hashes::Sha1HexAttribute;
|
||||||
use crate::util::helpers::Base64;
|
use crate::util::helpers::WhitespaceAwareBase64;
|
||||||
|
|
||||||
generate_element!(
|
generate_element!(
|
||||||
/// Communicates information about an avatar.
|
/// Communicates information about an avatar.
|
||||||
|
@ -45,7 +45,7 @@ generate_element!(
|
||||||
Data, "data", AVATAR_DATA,
|
Data, "data", AVATAR_DATA,
|
||||||
text: (
|
text: (
|
||||||
/// Vector of bytes representing the avatar’s image.
|
/// Vector of bytes representing the avatar’s image.
|
||||||
data: Base64<Vec<u8>>
|
data: WhitespaceAwareBase64<Vec<u8>>
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue