@eluvio/elv-client-js 4.0.22 → 4.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ElvClient-min.js +1 -1
- package/dist/ElvClient-node-min.js +1 -1
- package/dist/ElvFrameClient-min.js +1 -1
- package/dist/ElvWalletClient-min.js +1 -1
- package/dist/ElvWalletClient-node-min.js +1 -1
- package/dist/src/client/Files.js +2 -1
- package/package.json +1 -1
- package/src/client/Files.js +1 -1
package/dist/src/client/Files.js
CHANGED
|
@@ -1118,7 +1118,8 @@ exports.DownloadFile = /*#__PURE__*/function () {
|
|
|
1118
1118
|
libraryId: libraryId,
|
|
1119
1119
|
objectId: objectId,
|
|
1120
1120
|
versionHash: versionHash,
|
|
1121
|
-
encryption: encryption
|
|
1121
|
+
encryption: encryption,
|
|
1122
|
+
makeAccessRequest: encryption === "cgck"
|
|
1122
1123
|
});
|
|
1123
1124
|
case 12:
|
|
1124
1125
|
headers = _context15.sent;
|
package/package.json
CHANGED
package/src/client/Files.js
CHANGED
|
@@ -684,7 +684,7 @@ exports.DownloadFile = async function({
|
|
|
684
684
|
UrlJoin("q", writeToken || versionHash || objectId, "files", filePath);
|
|
685
685
|
|
|
686
686
|
|
|
687
|
-
const headers = await this.authClient.AuthorizationHeader({libraryId, objectId, versionHash, encryption});
|
|
687
|
+
const headers = await this.authClient.AuthorizationHeader({libraryId, objectId, versionHash, encryption, makeAccessRequest: encryption === "cgck"});
|
|
688
688
|
headers.Accept = "*/*";
|
|
689
689
|
|
|
690
690
|
// If not owner, indicate re-encryption
|