[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-twister] 05/11: object "walker" is HttpResponse-agno
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-twister] 05/11: object "walker" is HttpResponse-agnostic. |
Date: |
Wed, 16 May 2018 10:42:00 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository twister.
commit 0bd9dbbaaaf9661466d408409d65b8e32184212a
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue May 15 12:42:57 2018 +0200
object "walker" is HttpResponse-agnostic.
---
src/twister/taler-twister-service.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/twister/taler-twister-service.c
b/src/twister/taler-twister-service.c
index eb6db0c..c738507 100644
--- 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])
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-twister] branch master updated (2e773e8 -> 5ac6f8f), gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 11/11: json_dumpb() way better., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 06/11: dumping stringified flipped object into io_buf., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 09/11: debug stmt, gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 05/11: object "walker" is HttpResponse-agnostic.,
gnunet <=
- [GNUnet-SVN] [taler-twister] 03/11: Bring difference into the service component., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 08/11: export "flippers" to the internal API., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 02/11: Differentiate between bit-flipping in download and upload., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 01/11: Walk objects.., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 10/11: do not use "tmp" buffer for response, gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 04/11: cosmetics., gnunet, 2018/05/16
- [GNUnet-SVN] [taler-twister] 07/11: debug stmt, gnunet, 2018/05/16