https://kotlinlang.org logo
Title
u

user

07/04/2022, 7:51 AM
Setting application/json as content-type header error in Kotlin I'm trying to send a POST request to the server. When I didn't specify the content-type as header, the content-type will be x-www-form-urlencoded (I assume because I use @FormUrlEncoded). @FormUrlEncoded @POST("shiftentry/user_shift_entries") suspend fun getShifts( @Header("Authorization") auth: String, @Header("Content-Type") content_type: String, @Field("start_date") start_date: String, @Field("end_date") end_date: String, @Field("page") page: Int,...