I have this weird issue on my KMP app. I updated K...
# ktor
m
I have this weird issue on my KMP app. I updated KTOR and noticed that on iOS when I get a response from the server the
content-encoding
header is removed (even though it is returned by the backend). I tested the versions and found that this started happening with 3.0.3 release. On Android it works fine, so I suspect some changes to Darwin engine. Not sure how to resolve this issue, I would appreciate any help
a
This pull request introduced the change. Can you please describe how the header removal affects your application?
m
We have custom encryption/decryption plugin for KTOR. Our decryption plugin checks for that header to start decryption (not all responses are encrypted)
Is this the expected behavior to remove that header? I know a workaround I can do - put some attribute on the request (if request is encoded, then the response will be encoded) and use that to know if I should decode. But this feels not right. Is there some better alternative?
a
I don't think it's an expected behavior. Can you please file an issue with the description of your use case?
m
Will do thanks
🙏 1