Skip to content

Commit bc13124

Browse files
committed
STORAGE-2798 Allow overriding download urls
1 parent c197e20 commit bc13124

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/com/backblaze/b2/client/B2StorageClientWebifierImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public void downloadById(B2AccountAuthorization accountAuth,
488488
B2DownloadByIdRequest request,
489489
B2ContentSink handler) throws B2Exception {
490490
downloadGuts(accountAuth,
491-
makeDownloadByIdUrl(accountAuth, request),
491+
getDownloadByIdUrl(accountAuth, request),
492492
request.getRange(),
493493
request.getServerSideEncryption(),
494494
handler);
@@ -505,7 +505,7 @@ public void downloadByName(B2AccountAuthorization accountAuth,
505505
B2DownloadByNameRequest request,
506506
B2ContentSink handler) throws B2Exception {
507507
downloadGuts(accountAuth,
508-
makeDownloadByNameUrl(accountAuth, request.getBucketName(), request.getFileName(), request),
508+
getDownloadByNameUrl(accountAuth, request),
509509
request.getRange(),
510510
request.getServerSideEncryption(),
511511
handler);

0 commit comments

Comments
 (0)