This commit is contained in:
Ali
2023-07-25 22:08:46 +04:00
parent d8501b41c2
commit 29f29e927e
46 changed files with 1590 additions and 71 deletions

View File

@@ -459,7 +459,8 @@ private final class FetchImpl {
requestToken: Buffer(data: state.refreshToken)
),
tag: nil,
continueInBackground: self.continueInBackground
continueInBackground: self.continueInBackground,
expectedResponseSize: nil
)
let cdnData = state.cdnData
@@ -573,7 +574,8 @@ private final class FetchImpl {
limit: Int32(requestedLength)
),
tag: self.parameters?.tag,
continueInBackground: self.continueInBackground
continueInBackground: self.continueInBackground,
expectedResponseSize: Int32(requestedLength)
)
|> map { result -> FilePartResult in
switch result {
@@ -617,7 +619,8 @@ private final class FetchImpl {
offset: part.fetchRange.lowerBound,
limit: Int32(requestedLength)),
tag: self.parameters?.tag,
continueInBackground: self.continueInBackground
continueInBackground: self.continueInBackground,
expectedResponseSize: Int32(requestedLength)
)
|> map { result -> FilePartResult in
switch result {