mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Incoming request bodies are no longer base64
Since the socket is not a text-based transport, there's no need to base64-encode the IncomingPushMessageSignal.
This commit is contained in:
@@ -545,7 +545,7 @@ window.textsecure.protocol = function() {
|
||||
var aes_key = toArrayBuffer(signaling_key.substring(0, 32));
|
||||
var mac_key = toArrayBuffer(signaling_key.substring(32, 32 + 20));
|
||||
|
||||
var decodedMessage = StringView.base64ToBytes(getString(message));
|
||||
var decodedMessage = message.toArrayBuffer();
|
||||
if (new Uint8Array(decodedMessage)[0] != 1)
|
||||
throw new Error("Got bad version number: " + decodedMessage[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user