From eab0c675a0375411ccb94d509d1437af109d1ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 22 Sep 2019 16:31:01 +0800 Subject: Remove slash prefix, but append it if the url value is not yet --- ticket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ticket.c') diff --git a/ticket.c b/ticket.c index 7b71bb7..9c5f4f4 100644 --- a/ticket.c +++ b/ticket.c @@ -19,7 +19,7 @@ void rtclient_ticket_new(const char *queue , const char *due , const char *text) { - post("/REST/1.0/ticket/new", (const char *[]){ + post("REST/1.0/ticket/new", (const char *[]){ "ticket/new", "id" , queue, "Queue" , requestor, "Requestor" @@ -96,7 +96,7 @@ void rtclient_ticket_search(rtclient_ticketlist **listptr, const char *query) *listptr = malloc(sizeof(rtclient_ticketlist)); (*listptr)->length = 0; request(search_callback, (void *)listptr, NULL, "%s%s" - , "/REST/1.0/search/ticket?query=", query); + , "REST/1.0/search/ticket?query=", query); } void rtclient_ticket_freelist(rtclient_ticketlist *list) -- cgit v1.2.3