We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6791e40 commit 764fea6Copy full SHA for 764fea6
runtime/serde/serde-cbor/common/src/aws/smithy/kotlin/runtime/serde/cbor/CborSerializer.kt
@@ -27,7 +27,7 @@ public class CborSerializer :
27
StructSerializer {
28
private val buffer = SdkBuffer()
29
30
- public fun toHttpBody(): HttpBody = buffer.toHttpBody(contentLength = buffer.size)
+ public fun toHttpBody(): HttpBody = buffer.readByteArray().toHttpBody()
31
32
override fun toByteArray(): ByteArray = buffer.readByteArray()
33
0 commit comments