зеркало из https://github.com/Azure/BatchExplorer.git
Encode filename in downloadFromNode and downloadFromTask methods (#2862)
Co-authored-by: hoppe <hoppewang@microsoft.com>
This commit is contained in:
Родитель
ac92a74237
Коммит
140c9581a7
|
@ -246,10 +246,12 @@ export class FileService {
|
|||
}
|
||||
|
||||
public downloadFromNode(poolId: string, nodeId: string, filename: string, dest: string) {
|
||||
filename = encodeURIComponent(filename);
|
||||
return this._download(`/pools/${poolId}/nodes/${nodeId}/files/${filename}`, dest);
|
||||
}
|
||||
|
||||
public downloadFromTask(jobId: string, taskId: string, filename: string, dest: string) {
|
||||
filename = encodeURIComponent(filename);
|
||||
return this._download(`/jobs/${jobId}/tasks/${taskId}/files/${filename}`, dest);
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче