From ce0e39aaa7eec873f65fe9675badbd6461a3054c Mon Sep 17 00:00:00 2001 From: lilia <liliakai@gmail.com> Date: Mon, 23 Oct 2017 09:07:56 -0700 Subject: [PATCH] Fix timeouts // FREEBIE --- js/libtextsecure.js | 4 ++-- libtextsecure/api.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index ea08a931be..a28b064deb 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -37818,9 +37818,9 @@ var TextSecureServer = (function() { urlParameters : '/' + id, responseType : 'json', validateResponse : {location: 'string'}, - timeout : 0 }).then(function(response) { return ajax(response.location, { + timeout : 0, type : "GET", responseType: "arraybuffer", contentType : "application/octet-stream" @@ -37832,9 +37832,9 @@ var TextSecureServer = (function() { call : 'attachment', httpType : 'GET', responseType : 'json', - timeout : 0 }).then(function(response) { return ajax(response.location, { + timeout : 0, type : "PUT", contentType : "application/octet-stream", data : encryptedBin, diff --git a/libtextsecure/api.js b/libtextsecure/api.js index 0ada610c43..055f10ba33 100644 --- a/libtextsecure/api.js +++ b/libtextsecure/api.js @@ -381,9 +381,9 @@ var TextSecureServer = (function() { urlParameters : '/' + id, responseType : 'json', validateResponse : {location: 'string'}, - timeout : 0 }).then(function(response) { return ajax(response.location, { + timeout : 0, type : "GET", responseType: "arraybuffer", contentType : "application/octet-stream" @@ -395,9 +395,9 @@ var TextSecureServer = (function() { call : 'attachment', httpType : 'GET', responseType : 'json', - timeout : 0 }).then(function(response) { return ajax(response.location, { + timeout : 0, type : "PUT", contentType : "application/octet-stream", data : encryptedBin,