Skip to content

Commit 89431b0

Browse files
committed
fix headobject
1 parent f6c7aee commit 89431b0

File tree

4 files changed

+14
-23
lines changed

4 files changed

+14
-23
lines changed

sdk/src/Services/S3/Custom/Model/GetObjectMetadataResponse.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ public MetadataCollection Metadata
6767
}
6868
}
6969

70+
/// <summary>
71+
/// Gets and sets the property ContentLanguage.
72+
/// <para>
73+
/// The language the content is in.
74+
/// </para>
75+
/// </summary>
76+
public string ContentLanguage
77+
{
78+
get { return this.Headers.ContentLanguage; }
79+
set { this.Headers.ContentLanguage = value; }
80+
}
81+
7082
/// <summary>
7183
/// Gets and sets the property DeleteMarker.
7284
/// <para>
@@ -182,4 +194,3 @@ internal bool IsSetServerSideEncryptionCustomerMethod()
182194
}
183195
}
184196
}
185-

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ partial void PostUnmarshallCustomization(XmlUnmarshallerContext context, GetObje
6161
response.Headers.ContentDisposition = S3Transforms.ToString(responseData.GetHeaderValue("Content-Disposition"));
6262
if (responseData.IsHeaderPresent("Content-Encoding"))
6363
response.Headers.ContentEncoding = S3Transforms.ToString(responseData.GetHeaderValue("Content-Encoding"));
64+
if (responseData.IsHeaderPresent("Content-Language"))
65+
response.Headers.ContentLanguage = S3Transforms.ToString(responseData.GetHeaderValue("Content-Language"));
6466
if (responseData.IsHeaderPresent("Content-Length"))
6567
response.Headers.ContentLength = long.Parse(responseData.GetHeaderValue("Content-Length"), CultureInfo.InvariantCulture);
6668
if (responseData.IsHeaderPresent("Content-Type"))
@@ -74,4 +76,3 @@ partial void PostUnmarshallCustomization(XmlUnmarshallerContext context, GetObje
7476
}
7577
}
7678
}
77-

sdk/src/Services/S3/Generated/Model/GetObjectMetadataResponse.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public partial class GetObjectMetadataResponse : AmazonWebServiceResponse
4646
private ChecksumType _checksumType;
4747
private string _contentDisposition;
4848
private string _contentEncoding;
49-
private string _contentLanguage;
5049
private string _contentRange;
5150
private string _contentType;
5251
private string _eTag;
@@ -320,24 +319,6 @@ internal bool IsSetContentEncoding()
320319
return this._contentEncoding != null;
321320
}
322321

323-
/// <summary>
324-
/// Gets and sets the property ContentLanguage.
325-
/// <para>
326-
/// The language the content is in.
327-
/// </para>
328-
/// </summary>
329-
public string ContentLanguage
330-
{
331-
get { return this._contentLanguage; }
332-
set { this._contentLanguage = value; }
333-
}
334-
335-
// Check to see if ContentLanguage property is set
336-
internal bool IsSetContentLanguage()
337-
{
338-
return this._contentLanguage != null;
339-
}
340-
341322
/// <summary>
342323
/// Gets and sets the property ContentRange.
343324
/// <para>

sdk/src/Services/S3/Generated/Model/Internal/MarshallTransformations/GetObjectMetadataResponseUnmarshaller.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext conte
7070
response.ContentDisposition = context.ResponseData.GetHeaderValue("Content-Disposition");
7171
if (context.ResponseData.IsHeaderPresent("Content-Encoding"))
7272
response.ContentEncoding = context.ResponseData.GetHeaderValue("Content-Encoding");
73-
if (context.ResponseData.IsHeaderPresent("Content-Language"))
74-
response.ContentLanguage = context.ResponseData.GetHeaderValue("Content-Language");
7573
if (context.ResponseData.IsHeaderPresent("Content-Length"))
7674
response.ContentLength = long.Parse(context.ResponseData.GetHeaderValue("Content-Length"), CultureInfo.InvariantCulture);
7775
if (context.ResponseData.IsHeaderPresent("Content-Range"))

0 commit comments

Comments
 (0)