Closed YoshiRulz closed 5 years ago
This wasn't actually fixed, was it?
Also FWIW I retargeted the example to JVM and it correctly printed 4012
and 4013
. edit: from 1.3.0-beta-1
, native now gives the expected output
Yep, it wasn't :) But now it's fixed. Thanks for the report.
Ktor Version and Engine Used (client or server and name) 1.2.4, client, core + curl + json + mock + serialization (all for Linux native)
Describe the bug I have two nearly-identical strings (containing valid JSON) and each is used by a
MockEngine
as GET responses. CallingHttpClient.get<T>(String, HttpRequestBuilder.() -> Unit)
with one address returns the deserialised form of the shorter string, but the second call fails because the string's ending}
is truncated.This may be related to #787.
To Reproduce Steps to reproduce the behavior:
runReleaseExecutableLinux
and get this output:Reproduction project:
Expected behavior The JSON deserialiser should recieve the whole response.
I apologise if this is actually a bug in
kotlinx.serialization
.