Skip to content

Commit a75c7d4

Browse files
committed
Add ContentLanguage to header collection of GetObjectResponse.
1 parent 923d833 commit a75c7d4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"services": [
3+
{
4+
"serviceName": "S3",
5+
"type": "patch",
6+
"changeLogMessages": [
7+
"Add ContentLanguage to header collection of GetObjectResponse."
8+
]
9+
}
10+
]
11+
}

sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/GetObjectResponseUnmarshaller.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ private static void UnmarshallResult(XmlUnmarshallerContext context,GetObjectRes
8989
response.ContentLanguage = S3Transforms.ToString(responseData.GetHeaderValue("Content-Language"));
9090
if (responseData.IsHeaderPresent("Content-Length"))
9191
response.Headers.ContentLength = long.Parse(responseData.GetHeaderValue("Content-Length"), CultureInfo.InvariantCulture);
92+
response.Headers.ContentLanguage = S3Transforms.ToString(responseData.GetHeaderValue("Content-Language"));
9293
if (responseData.IsHeaderPresent("x-amz-object-lock-legal-hold"))
9394
response.ObjectLockLegalHoldStatus = S3Transforms.ToString(responseData.GetHeaderValue("x-amz-object-lock-legal-hold"));
9495
if (responseData.IsHeaderPresent("x-amz-object-lock-mode"))

0 commit comments

Comments
 (0)