Don't hardcode the attachment host
This commit is contained in:
parent
184e37383c
commit
e59a5792d5
2 changed files with 2 additions and 4 deletions
|
@ -38900,7 +38900,6 @@ TextSecureServer = function () {
|
||||||
************************************************/
|
************************************************/
|
||||||
// Staging server
|
// Staging server
|
||||||
var URL_BASE = "https://textsecure-service-staging.whispersystems.org";
|
var URL_BASE = "https://textsecure-service-staging.whispersystems.org";
|
||||||
var ATTACHMENT_HOST = "whispersystems-textsecure-attachments-staging.s3.amazonaws.com";
|
|
||||||
|
|
||||||
// This is the real server
|
// This is the real server
|
||||||
//var URL_BASE = "https://textsecure-service.whispersystems.org";
|
//var URL_BASE = "https://textsecure-service.whispersystems.org";
|
||||||
|
@ -39176,7 +39175,7 @@ TextSecureServer = function () {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var id_regex = RegExp( "^https:\/\/" + ATTACHMENT_HOST + "\/(\\d+)\?");
|
var id_regex = RegExp( "^https:\/\/.*\/(\\d+)\?");
|
||||||
self.putAttachment = function(encryptedBin) {
|
self.putAttachment = function(encryptedBin) {
|
||||||
return doAjax({
|
return doAjax({
|
||||||
call : 'attachment',
|
call : 'attachment',
|
||||||
|
|
|
@ -12,7 +12,6 @@ TextSecureServer = function () {
|
||||||
************************************************/
|
************************************************/
|
||||||
// Staging server
|
// Staging server
|
||||||
var URL_BASE = "https://textsecure-service-staging.whispersystems.org";
|
var URL_BASE = "https://textsecure-service-staging.whispersystems.org";
|
||||||
var ATTACHMENT_HOST = "whispersystems-textsecure-attachments-staging.s3.amazonaws.com";
|
|
||||||
|
|
||||||
// This is the real server
|
// This is the real server
|
||||||
//var URL_BASE = "https://textsecure-service.whispersystems.org";
|
//var URL_BASE = "https://textsecure-service.whispersystems.org";
|
||||||
|
@ -288,7 +287,7 @@ TextSecureServer = function () {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var id_regex = RegExp( "^https:\/\/" + ATTACHMENT_HOST + "\/(\\d+)\?");
|
var id_regex = RegExp( "^https:\/\/.*\/(\\d+)\?");
|
||||||
self.putAttachment = function(encryptedBin) {
|
self.putAttachment = function(encryptedBin) {
|
||||||
return doAjax({
|
return doAjax({
|
||||||
call : 'attachment',
|
call : 'attachment',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue