|
|
|
@ -36305,6 +36305,8 @@ var TextSecureServer = (function() {
|
|
|
|
|
if (options.contentType) {
|
|
|
|
|
xhr.setRequestHeader( "Content-Type", options.contentType );
|
|
|
|
|
}
|
|
|
|
|
xhr.setRequestHeader( 'X-Signal-Agent', 'OWD' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
xhr.onload = function() {
|
|
|
|
|
var result = xhr.response;
|
|
|
|
@ -36618,13 +36620,14 @@ var TextSecureServer = (function() {
|
|
|
|
|
.replace('http://', 'ws://')
|
|
|
|
|
+ '/v1/websocket/?login=' + encodeURIComponent(this.username)
|
|
|
|
|
+ '&password=' + encodeURIComponent(this.password)
|
|
|
|
|
+ '&agent=OWD'
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
getProvisioningSocket: function () {
|
|
|
|
|
return new WebSocket(
|
|
|
|
|
this.url.replace('https://', 'wss://')
|
|
|
|
|
.replace('http://', 'ws://')
|
|
|
|
|
+ '/v1/websocket/provisioning/'
|
|
|
|
|
+ '/v1/websocket/provisioning/?agent=OWD'
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|