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 Oct 6, 2022
1 parent 5a2c6a7 commit 26f53a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 26f53a7

Please sign in to comment.