Skip to content

Commit

Permalink
Fix reading content_length from DB in getTransferTaskDataFromDB (#5471)
Browse files Browse the repository at this point in the history
* Fix reading content_length from DB in getTransferTaskDataFromDB

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: Harsh <[email protected]>
  • Loading branch information
creitz and harsh62 authored Dec 9, 2024
1 parent 49fa47c commit cbe9da1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AWSS3/AWSS3TransferUtilityDatabaseHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ + (NSMutableArray *) getTransferTaskDataFromDB:(NSString *)nsURLSessionID
[transfer setObject:[rs stringForColumn:@"etag"] forKey:@"etag"];
[transfer setObject:[AWSS3TransferUtilityDatabaseHelper absolutePathFromRelativePath:[rs stringForColumn:@"file"]] forKey:@"file"];
[transfer setObject:@([rs intForColumn:@"temporary_file_created"]) forKey:@"temporary_file_created"];
[transfer setObject:@([rs intForColumn:@"content_length"]) forKey:@"content_length"];
[transfer setObject:@([rs longForColumn:@"content_length"]) forKey:@"content_length"];
[transfer setObject:@([rs intForColumn:@"retry_count"]) forKey:@"retry_count"];
[transfer setObject:[rs stringForColumn:@"request_headers"] forKey:@"request_headers"];
[transfer setObject:[rs stringForColumn:@"request_parameters"] forKey:@"request_parameters"];
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
- `setSignInProviders(_:)`
- `getCredentialsProvider()`

### Bug Fixes
- **AWSS3**
- Fix reading content_length from DB in AWSS3TransferUtilityDatabaseHelper.m `getTransferTaskDataFromDB`

## 2.37.2

### Bug Fixes
Expand Down

0 comments on commit cbe9da1

Please sign in to comment.