Fuel.post -> responseString value problem

#1

Hello

I use Fuel to send data to my software.
The php file return me “OK1”.

             Fuel.post(url, listOf("cptint" to monuserstocke, "code" to moncode, "qte" to maqte, "reste" to maqtereste, "inv" to monmodeinventaire))
            .responseString() { request, response, result ->
                result.fold(success = {
        
                    if (it == "OK1") {
                        val text = "Envoi réussi"
                        val duration = Toast.LENGTH_SHORT

                        val toast = Toast.makeText(applicationContext, text, duration)
                        toast.show()

                        tvresult.text = "CODE PIECE"

                        qte.setText("1")
                        reste.setText("")

                    }

My “It” value = “OK1” and the two parameters are string.

But the execution does not fit into the function. i don’t understant beacause the two values are the same.

Any idea ?

Tanks