-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error when using @FormUrlEncoded #11
Comments
Hi @Tlaster , which Ktor version are you using? |
I'm using Version 2.0.1. |
Just got the same error when using @FormUrlEncoded annotation
|
@Tlaster have you been able to overcome this issue yet? |
No, our team end up creating a new one that just generates ktor call without any runtime: https://github.com/qdsfdhvh/ktor-fit |
Hi @Tlaster , @gazanfarov |
@Foso just noticed new commit and here you are. God speed! 🤓 Update: everything works now. |
Describe the bug
When using
@FormUrlEncoded
, ktor will throw an errorio.ktor.http.UnsafeHeaderException: Header(s) [Content-Type] are controlled by the engine and cannot be set explicitly
, I think it's a limitation from ktor since there's already an issue about it. But I haven't got a solution yet.To Reproduce
Steps to reproduce the behavior:
Make an api interface with
@FormUrlEncoded
Expected behavior
We can make
@FormUrlEncoded
requestSoftware used
The text was updated successfully, but these errors were encountered: