commit 0bd9dbbaaaf9661466d408409d65b8e32184212a
parent 3e893763ce310f31216ec66faff9997e8c9e2cde
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Tue, 15 May 2018 12:42:57 +0200
object "walker" is HttpResponse-agnostic.
Diffstat:
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c
@@ -1030,7 +1030,7 @@ modify_object (struct MHD_Connection *con,
static void
flip_object (struct MHD_Connection *con,
- struct HttpRequest *hr,
+ json_t *json,
char *flip_path)
{
char *target;
@@ -1039,7 +1039,7 @@ flip_object (struct MHD_Connection *con,
if (GNUNET_OK != walk_response_object (flip_path,
&parent,
&target,
- hr->json))
+ json))
return;
/* here, element is the parent of the element to be deleted. */
@@ -1240,14 +1240,12 @@ create_response (void *cls,
* generate curl request to the proxied service. */
if (NULL == hr->curl)
{
- #if 0
- if (GNUNET_YES == flip_upload)
+ if ('\0' != flip_path_ul[0])
{
/* */
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Going to modify the upload object\n"),
+ "Going to modify the upload object\n");
}
- #endif
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Generating curl request\n");
@@ -1441,7 +1439,7 @@ create_response (void *cls,
{
TALER_LOG_DEBUG ("Will flip path: %s\n",
flip_path_dl);
- flip_object (con, hr, flip_path_dl);
+ flip_object (con, hr->json, flip_path_dl);
}
if ('\0' != delete_path[0])