diff options
| author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-22 16:31:01 +0800 |
|---|---|---|
| committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-22 16:31:01 +0800 |
| commit | eab0c675a0375411ccb94d509d1437af109d1ad4 (patch) | |
| tree | dfd29ad90dbaf859bbe180296c4e76a89112dd21 /user.c | |
| parent | 33c38800f850bb673bbe1555e007a2e462e682c7 (diff) | |
Remove slash prefix, but append it if the url value is not yet
Diffstat (limited to 'user.c')
| -rw-r--r-- | user.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -30,7 +30,7 @@ void rtclient_user_new(const char *name , bool disabled , bool privileged) { - post("/REST/1.0/user/new", (const char *[]){ + post("REST/1.0/user/new", (const char *[]){ name, "Name" , password, "Password" , emailaddress, "EmailAddress" @@ -214,14 +214,14 @@ static inline void user_init(rtclient_user **userptr) void rtclient_user_showid(rtclient_user **userptr, unsigned int id) { user_init(userptr); - request(show_callback, (void *)userptr, NULL, "%s%d", "/REST/1.0/user/" + request(show_callback, (void *)userptr, NULL, "%s%d", "REST/1.0/user/" , id); } void rtclient_user_showname(rtclient_user **userptr, const char *name) { user_init(userptr); - request(show_callback, (void *)userptr, NULL, "%s%s", "/REST/1.0/user/" + request(show_callback, (void *)userptr, NULL, "%s%s", "REST/1.0/user/" , name); } |