Skip to content

Commit

Permalink
STORAGE-2798 Change downloadById and downloadByName to call getDownlo…
Browse files Browse the repository at this point in the history
…adByIdUrl and getDownloadByNameUrl in order to allow overriding the urls in order to add url params
  • Loading branch information
jsha-bbz committed Dec 4, 2024
1 parent c197e20 commit 60d264c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public void downloadById(B2AccountAuthorization accountAuth,
B2DownloadByIdRequest request,
B2ContentSink handler) throws B2Exception {
downloadGuts(accountAuth,
makeDownloadByIdUrl(accountAuth, request),
getDownloadByIdUrl(accountAuth, request),
request.getRange(),
request.getServerSideEncryption(),
handler);
Expand All @@ -505,7 +505,7 @@ public void downloadByName(B2AccountAuthorization accountAuth,
B2DownloadByNameRequest request,
B2ContentSink handler) throws B2Exception {
downloadGuts(accountAuth,
makeDownloadByNameUrl(accountAuth, request.getBucketName(), request.getFileName(), request),
getDownloadByNameUrl(accountAuth, request),
request.getRange(),
request.getServerSideEncryption(),
handler);
Expand Down

0 comments on commit 60d264c

Please sign in to comment.