From c0d00c8b7c691e90a897de577bdaf8316b00692b Mon Sep 17 00:00:00 2001 From: Angela Mazzurco Date: Tue, 18 Jul 2017 16:36:54 +0200 Subject: [PATCH] Stringfy correctly the params sent to the api --- retroshare-qml-app/src/ContactDetails.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retroshare-qml-app/src/ContactDetails.qml b/retroshare-qml-app/src/ContactDetails.qml index ceed88f29..fff6f9f48 100644 --- a/retroshare-qml-app/src/ContactDetails.qml +++ b/retroshare-qml-app/src/ContactDetails.qml @@ -47,7 +47,7 @@ Item var base64Image = androidImagePicker.imageToBase64(resultFile) - rsApi.request("/identity/set_avatar", {"gxs_id": cntDt.md.gxs_id, "avatar": base64Image }, + rsApi.request("/identity/set_avatar", JSON.stringify({"gxs_id": cntDt.md.gxs_id, "avatar": base64Image }), function (res){ console.log("Avatar changed! " , JSON.stringify(res)) }