mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-30 17:48:50 +02:00
feat(upload): Added body to download function (#1523)
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
This commit is contained in:
@@ -45,7 +45,8 @@ async function download(
|
||||
url: string,
|
||||
filePath: string,
|
||||
progressHandler?: ProgressHandler,
|
||||
headers?: Map<string, string>
|
||||
headers?: Map<string, string>,
|
||||
body?: string
|
||||
): Promise<void> {
|
||||
const ids = new Uint32Array(1)
|
||||
window.crypto.getRandomValues(ids)
|
||||
@@ -61,7 +62,8 @@ async function download(
|
||||
url,
|
||||
filePath,
|
||||
headers: headers ?? {},
|
||||
onProgress
|
||||
onProgress,
|
||||
body
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user