File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 19
19
-->
20
20
## Upcoming Release
21
21
* Fixed object replication policy time format parsing issue [ #24434 ]
22
+ * Updated download offset and content length calculation logic for downloading files
23
+ - ` Get-AzStorageFileContent `
22
24
23
25
## Version 6.1.3
24
26
* Introduced secrets detection feature to safeguard sensitive data.
Original file line number Diff line number Diff line change @@ -340,8 +340,8 @@ await DataMovementTransferHelper.DoTransfer(() =>
340
340
downloadOptions . Range = new HttpRange ( downloadOffset , contentSize ) ;
341
341
ShareFileDownloadInfo download = fileClientToBeDownloaded . Download ( downloadOptions , cancellationToken : this . CmdletCancellationToken ) ;
342
342
download . Content . CopyTo ( stream ) ;
343
- downloadOffset += contentSize ;
344
- contentLenLeft -= contentSize ;
343
+ downloadOffset += download . ContentLength ;
344
+ contentLenLeft -= download . ContentLength ;
345
345
progressHandler . Report ( downloadOffset ) ;
346
346
}
347
347
}
You can’t perform that action at this time.
0 commit comments