Skip to content

Commit

Permalink
Use proper type for serializing Kotlin response
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand authored and tmihalac committed Oct 27, 2022
1 parent f3da483 commit ed046da
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 ed046da

Please sign in to comment.