Skip to content

Commit

Permalink
fix: override signing config for s3 control (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez authored Jan 23, 2024
1 parent cef72c5 commit 892336a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .changes/8147aee6-9f81-40cc-965e-9867044439b9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "8147aee6-9f81-40cc-965e-9867044439b9",
"type": "bugfix",
"description": "Add missing `x-amz-content-sha256` header for SigV4 requests.",
"issues": [
"awslabs/aws-sdk-kotlin#1187"
],
"module": "s3control"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ class S3SigningConfig : KotlinIntegration {
override val order: Byte
get() = 127

override fun enabledForService(model: Model, settings: KotlinSettings) =
model.expectShape<ServiceShape>(settings.service).isS3
override fun enabledForService(model: Model, settings: KotlinSettings): Boolean {
val service = model.expectShape<ServiceShape>(settings.service)
return (service.isS3 || service.isS3Control)
}

override val sectionWriters: List<SectionWriterBinding>
get() = listOf(
Expand Down

0 comments on commit 892336a

Please sign in to comment.