gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: IDENTITY/REST: gracefully r


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: IDENTITY/REST: gracefully return if no identities found
Date: Thu, 25 Apr 2019 18:27:35 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new ed6494039 IDENTITY/REST: gracefully return if no identities found
ed6494039 is described below

commit ed649403902b055935308ee7a244e2d3ba081301
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Thu Apr 25 18:27:23 2019 +0200

    IDENTITY/REST: gracefully return if no identities found
---
 src/identity/plugin_rest_identity.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/identity/plugin_rest_identity.c 
b/src/identity/plugin_rest_identity.c
index 3bfca3121..89f590d3e 100644
--- a/src/identity/plugin_rest_identity.c
+++ b/src/identity/plugin_rest_identity.c
@@ -490,15 +490,6 @@ ego_get_all (struct GNUNET_REST_RequestHandle *con_handle,
     json_decref (json_ego);
   }
 
-  if ((size_t) 0 == json_array_size (json_root))
-  {
-    json_decref (json_root);
-    handle->response_code = MHD_HTTP_NOT_FOUND;
-    handle->emsg = GNUNET_strdup(GNUNET_REST_IDENTITY_NOT_FOUND);
-    GNUNET_SCHEDULER_add_now (&do_error, handle);
-    return;
-  }
-
   result_str = json_dumps (json_root, 0);
   GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Result %s\n", result_str);
   resp = GNUNET_REST_create_response (result_str);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]