Skip to content

Commit

Permalink
Use proper type for serializing Kotlin response
Browse files Browse the repository at this point in the history
Fixes: #28096
  • Loading branch information
geoand committed Sep 21, 2022
1 parent 18b3a02 commit 6c20777
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -30,7 +30,7 @@ class KotlinSerializationMessageBodyWriter(private val json: Json) : AllWriteabl
if (o is String) { // YUK: done in order to avoid adding extra quotes...
entityStream.write(o.toByteArray(StandardCharsets.UTF_8))
} else {
json.encodeToStream(serializer(o.javaClass), o, entityStream)
json.encodeToStream(serializer(genericType), o, entityStream)
}
}

Expand Down

0 comments on commit 6c20777

Please sign in to comment.