Skip to content

Commit

Permalink
Merge pull request #104 from NipunaRanasinghe/2201.4.x
Browse files Browse the repository at this point in the history
[2201.4.x] Fix object retrieval for partial content
  • Loading branch information
NipunaRanasinghe authored Feb 15, 2024
2 parents cc7214d + 6db2c90 commit 3adedda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion s3/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
distribution = "2201.4.1"
org = "ballerinax"
name = "aws.s3"
version = "3.2.0"
version = "3.2.1"
license= ["Apache-2.0"]
authors = ["Ballerina"]
keywords = ["Content & Files/File Management & Storage", "Cost/Paid", "Vendor/Amazon"]
Expand Down
10 changes: 5 additions & 5 deletions s3/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "crypto"
version = "2.3.0"
version = "2.3.2"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "time"}
Expand All @@ -66,7 +66,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "http"
version = "2.6.1"
version = "2.6.2"
dependencies = [
{org = "ballerina", name = "auth"},
{org = "ballerina", name = "cache"},
Expand Down Expand Up @@ -297,7 +297,7 @@ modules = [
[[package]]
org = "ballerina"
name = "time"
version = "2.2.4"
version = "2.2.5"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
Expand All @@ -308,7 +308,7 @@ modules = [
[[package]]
org = "ballerina"
name = "url"
version = "2.2.3"
version = "2.2.4"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
Expand All @@ -319,7 +319,7 @@ modules = [
[[package]]
org = "ballerinax"
name = "aws.s3"
version = "3.2.0"
version = "3.2.1"
dependencies = [
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "http"},
Expand Down
2 changes: 1 addition & 1 deletion s3/client.bal
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public isolated client class Client {
check generateSignature(self.accessKeyId, self.secretAccessKey, self.region, GET, requestURI, UNSIGNED_PAYLOAD,
requestHeaders);
http:Response httpResponse = check self.amazonS3->get(requestURI, requestHeaders);
if (httpResponse.statusCode == http:STATUS_OK) {
if (httpResponse.statusCode == http:STATUS_OK || (httpResponse.statusCode == http:STATUS_PARTIAL_CONTENT && objectRetrievalHeaders?.range != ())) {
if byteArraySize is int {
return httpResponse.getByteStream(byteArraySize);
}
Expand Down

0 comments on commit 3adedda

Please sign in to comment.