[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-twister] 05/34: fix iteration over object path's par
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-twister] 05/34: fix iteration over object path's parts. |
Date: |
Sat, 17 Mar 2018 01:57:56 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository twister.
commit be48cb5f889e3ba259165df8c6350b87804808aa
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Mar 6 18:05:52 2018 +0100
fix iteration over object path's parts.
---
src/test/test_twister_webserver.c | 5 +++++
src/twister/taler-twister-service.c | 11 ++++++-----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/test/test_twister_webserver.c
b/src/test/test_twister_webserver.c
index 238155a..d34217d 100644
--- a/src/test/test_twister_webserver.c
+++ b/src/test/test_twister_webserver.c
@@ -43,7 +43,12 @@ answer_to_connection
const char *version, const char *upload_data,
size_t *upload_data_size, void **con_cls)
{
+ #if 0
const char *page = "<html><body>Hello, browser!</body></html>";
+ #endif
+
+ const char *page = "{\"hello\": \"browser!\"}";
+
struct MHD_Response *response;
int ret;
(void)cls; /* Unused. Silent compiler warning. */
diff --git a/src/twister/taler-twister-service.c
b/src/twister/taler-twister-service.c
index 6af830e..15861c7 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -1107,13 +1107,14 @@ create_response (void *cls,
}
else
{
- GNUNET_assert (NULL != strtok (delete_path, "."));
- while (NULL != (token_path = strtok (NULL, ".")))
+ TALER_LOG_WARNING ("Got token path: %s\n", delete_path);
+ token_path = strtok (delete_path, ".");
+ do
{
- /* fill with logic */
-
+ TALER_LOG_WARNING ("Iterating over token: %s\n",
+ token_path);
}
-
+ while (NULL != (token_path = strtok (NULL, ".")));
mod_response = json_dumps (parsed_response, JSON_COMPACT);
json_decref (parsed_response);
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-twister] branch master updated (3513119 -> f717a7a), gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 11/34: fix double destruction of response., gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 01/34: fix cli arg, gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 05/34: fix iteration over object path's parts.,
gnunet <=
- [GNUnet-SVN] [taler-twister] 09/34: help string, gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 08/34: lazy check object/array path element., gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 10/34: fix object walking., gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 04/34: parsing proxied responses., gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 06/34: helper function., gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 15/34: testing empty-object feature., gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 03/34: get path parsing to compile., gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 07/34: fix actual object emptying., gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 13/34: conditional delete., gnunet, 2018/03/16
- [GNUnet-SVN] [taler-twister] 30/34: body malformation test CMD., gnunet, 2018/03/16