diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-02-10 17:37:43 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-02-10 17:37:43 +0100 |
commit | 555d0a46f3e463e280e029b3574c4bed10740c98 (patch) | |
tree | 9ec45903357bfd18d7e3e5e797fca90bfc2b59f5 | |
parent | b9a5fe66cb8ca87a192be4ec1f0436529341bad9 (diff) |
add no_padding, no_wrap to file upload slots
-rw-r--r-- | src/main/java/de/pixart/messenger/generator/IqGenerator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/generator/IqGenerator.java b/src/main/java/de/pixart/messenger/generator/IqGenerator.java index adcf2b04f..971d43952 100644 --- a/src/main/java/de/pixart/messenger/generator/IqGenerator.java +++ b/src/main/java/de/pixart/messenger/generator/IqGenerator.java @@ -334,7 +334,7 @@ public class IqGenerator extends AbstractGenerator { ByteBuffer bb = ByteBuffer.wrap(new byte[16]); bb.putLong(uuid.getMostSignificantBits()); bb.putLong(uuid.getLeastSignificantBits()); - return Base64.encodeToString(bb.array(), Base64.URL_SAFE) + name.substring(pos, name.length()); + return Base64.encodeToString(bb.array(), Base64.URL_SAFE | Base64.NO_PADDING | Base64.NO_WRAP) + name.substring(pos, name.length()); } catch (Exception e) { return name; } |