donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 0f2214b3bfa8c67003d167d3fbaf3d3b3eb54b38
parent b2cc3873b7c2ee204a1c8baab23361ac8ec01d1e
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sun, 19 Jul 2026 23:56:42 +0200

handle HTTP status codes as per spec

Diffstat:
Msrc/lib/donau_api_charities_get.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/lib/donau_api_charities_get.c b/src/lib/donau_api_charities_get.c @@ -164,6 +164,10 @@ handle_charities_get_finished (void *cls, gcresp.hr.ec = TALER_EC_GENERIC_REPLY_MALFORMED; } break; + case MHD_HTTP_NO_CONTENT: + /* No charities are registered yet; a normal, non-error outcome + (empty list, empty body). */ + break; case MHD_HTTP_BAD_REQUEST: /* This should never happen, either us or the donau is buggy (or API version conflict); just pass JSON reply to the application */