twister

HTTP fault injector for testing
Log | Files | Refs | README | LICENSE

commit 8a3bf1c5404e839b1abac1f81ec2a595a0ee200a
parent 0fd827bdc833aec5a50a0575b51a79543a2bacb2
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Tue,  6 Mar 2018 16:29:30 +0100

get path parsing to compile.

Diffstat:
Msrc/twister/taler-twister-service.c | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c @@ -1087,6 +1087,8 @@ create_response (void *cls, { json_t *parsed_response; json_error_t error; + char *token_path; + char *mod_response; MHD_destroy_response (hr->response); @@ -1104,7 +1106,24 @@ create_response (void *cls, (strlen (error_msg), error_msg, MHD_RESPMEM_PERSISTENT); + /* Need a code that doesn't clash with Taler's. */ + hr->response_code = MHD_HTTP_GONE; } + + GNUNET_assert (NULL != strtok (delete_path, ".")); + while (NULL != (token_path = strtok (NULL, "."))) + { + /* fill with logic */ + + } + + mod_response = json_dumps (parsed_response, JSON_COMPACT); + json_decref (parsed_response); + + hr->response = MHD_create_response_from_buffer + (strlen (mod_response), + mod_response, + MHD_RESPMEM_MUST_COPY); } return MHD_queue_response (con,