After updating Ktor from 3.0.1 to 3.0.2 start getting on Ktor client (checked on Js/WasmJs) 'IllegalStateException: Content-Type mismatch; expected 163 bytes but received 231 bytes '.
When checking this response in browser's development panel (network) i see 'Content-Length: 163' and resource is opening by browser normally (it is svg image).
I suspect there can be some changes from 3.0.1 to 3.0.2 after which check for content-length in Ktor client start to compare not with original size but with size after decoded from 'content-encoding: gzip'