Skip to content

Commit 81198f9

Browse files
committed
Add Accept header to RpcV2Cbor
1 parent 14ae7dd commit 81198f9

File tree

1 file changed

+1
-1
lines changed
  • codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols

1 file changed

+1
-1
lines changed

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/protocols/RpcV2Cbor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ open class RpcV2Cbor(val codegenContext: CodegenContext) : Protocol {
112112
override val defaultTimestampFormat: TimestampFormatTrait.Format = TimestampFormatTrait.Format.EPOCH_SECONDS
113113

114114
override fun additionalRequestHeaders(operationShape: OperationShape): List<Pair<String, String>> =
115-
listOf("smithy-protocol" to "rpc-v2-cbor")
115+
listOf("smithy-protocol" to "rpc-v2-cbor", "Accept" to "application/cbor")
116116

117117
override fun additionalResponseHeaders(operationShape: OperationShape): List<Pair<String, String>> =
118118
listOf("smithy-protocol" to "rpc-v2-cbor")

0 commit comments

Comments
 (0)