Fix setSignedPreKey request - don't expect a JSON response (#1595)
Don't expect a json response from this endpoint. It will only give you empty responses and exceptions. And sadness. // FREEBIE
This commit is contained in:
parent
6a895f0e27
commit
22ccd46f4c
2 changed files with 0 additions and 2 deletions
|
@ -37745,7 +37745,6 @@ var TextSecureServer = (function() {
|
||||||
return this.ajax({
|
return this.ajax({
|
||||||
call : 'signed',
|
call : 'signed',
|
||||||
httpType : 'PUT',
|
httpType : 'PUT',
|
||||||
responseType : 'json',
|
|
||||||
jsonData : {
|
jsonData : {
|
||||||
keyId: signedPreKey.keyId,
|
keyId: signedPreKey.keyId,
|
||||||
publicKey: btoa(getString(signedPreKey.publicKey)),
|
publicKey: btoa(getString(signedPreKey.publicKey)),
|
||||||
|
|
|
@ -308,7 +308,6 @@ var TextSecureServer = (function() {
|
||||||
return this.ajax({
|
return this.ajax({
|
||||||
call : 'signed',
|
call : 'signed',
|
||||||
httpType : 'PUT',
|
httpType : 'PUT',
|
||||||
responseType : 'json',
|
|
||||||
jsonData : {
|
jsonData : {
|
||||||
keyId: signedPreKey.keyId,
|
keyId: signedPreKey.keyId,
|
||||||
publicKey: btoa(getString(signedPreKey.publicKey)),
|
publicKey: btoa(getString(signedPreKey.publicKey)),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue