diff --git a/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/UploadRequest.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/UploadRequest.kt index 5c87be63..9a7c0c41 100644 --- a/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/UploadRequest.kt +++ b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/UploadRequest.kt @@ -49,6 +49,7 @@ internal class UploadRequest(json: Json, httpClient: HttpClient) : BaseRequest(j suspend fun resendEmailCode(resendEmailCodeBody: ResendEmailCodeBody): Boolean { val httpResponse = httpClient.post(url = createUrl(ApiRoutes.resendEmailCode)) { + contentType(ContentType.Application.Json) setBody(resendEmailCodeBody) } return httpResponse.status.isSuccess()