mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-09-30 18:29:36 +02:00
s3: do not fix presigned url protocol to HTTP in dev/staging
This commit is contained in:
1 parent
0f287328d9
commit
4b7fb348e5
1 file changed
-8
@@ -434,11 +434,7 @@ namespace Notesnook.API.Services
|
|||||||
Expires = System.DateTime.Now.AddHours(1),
|
Expires = System.DateTime.Now.AddHours(1),
|
||||||
Verb = httpVerb,
|
Verb = httpVerb,
|
||||||
Key = objectName,
|
Key = objectName,
|
||||||
#if (DEBUG || STAGING)
|
|
||||||
Protocol = Protocol.HTTP,
|
|
||||||
#else
|
|
||||||
Protocol = client.Config.ServiceURL.StartsWith("http://") ? Protocol.HTTP : Protocol.HTTPS,
|
Protocol = client.Config.ServiceURL.StartsWith("http://") ? Protocol.HTTP : Protocol.HTTPS,
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
return client.GetPreSignedURLAsync(request);
|
return client.GetPreSignedURLAsync(request);
|
||||||
}, operationName: "GetPreSignedURL");
|
}, operationName: "GetPreSignedURL");
|
||||||
@@ -458,11 +454,7 @@ namespace Notesnook.API.Services
|
|||||||
Key = objectName,
|
Key = objectName,
|
||||||
PartNumber = partNumber,
|
PartNumber = partNumber,
|
||||||
UploadId = uploadId,
|
UploadId = uploadId,
|
||||||
#if (DEBUG || STAGING)
|
|
||||||
Protocol = Protocol.HTTP,
|
|
||||||
#else
|
|
||||||
Protocol = c.Config.ServiceURL.StartsWith("http://") ? Protocol.HTTP : Protocol.HTTPS,
|
Protocol = c.Config.ServiceURL.StartsWith("http://") ? Protocol.HTTP : Protocol.HTTPS,
|
||||||
#endif
|
|
||||||
}), operationName: "GetPreSignedURL");
|
}), operationName: "GetPreSignedURL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user