1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

CLI specifies bitwarden api for send download (#348)

This is needed for CLI to download Send files from non-configured
Bitwarden Servers. Web does not have this issue because it can assume
api from its own url.
This commit is contained in:
Matt Gibson
2021-04-20 19:17:31 -05:00
committed by GitHub
parent 3a1087456f
commit 1f62b22285
2 changed files with 3 additions and 3 deletions

View File

@@ -423,8 +423,8 @@ export class ApiService implements ApiServiceAbstraction {
}
async getSendFileDownloadData(send: SendAccessView, request: SendAccessRequest): Promise<SendFileDownloadDataResponse> {
const r = await this.send('POST', '/sends/' + send.id + '/access/file/' + send.file.id, request, false, true);
async getSendFileDownloadData(send: SendAccessView, request: SendAccessRequest, apiUrl?: string): Promise<SendFileDownloadDataResponse> {
const r = await this.send('POST', '/sends/' + send.id + '/access/file/' + send.file.id, request, false, true, apiUrl);
return new SendFileDownloadDataResponse(r);
}