-handle 204 better

This commit is contained in:
Christian Grothoff 2021-08-06 14:47:46 +02:00
parent 978a90e79b
commit f1a0ba628e
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -180,7 +180,8 @@ credit_history_cb (void *cls,
{ {
if ( (MHD_HTTP_NO_CONTENT != http_status) || if ( (MHD_HTTP_NO_CONTENT != http_status) ||
(TALER_EC_NONE != ec) || (TALER_EC_NONE != ec) ||
(NULL == details) ) ( (MHD_HTTP_NO_CONTENT != http_status) &&
(NULL == details) ) )
{ {
if (0 == http_status) if (0 == http_status)
{ {
@ -293,7 +294,8 @@ debit_history_cb (void *cls,
{ {
if ( (MHD_HTTP_NO_CONTENT != http_status) || if ( (MHD_HTTP_NO_CONTENT != http_status) ||
(TALER_EC_NONE != ec) || (TALER_EC_NONE != ec) ||
(NULL == details) ) ( (MHD_HTTP_NO_CONTENT != http_status) &&
(NULL == details) ) )
{ {
if (0 == http_status) if (0 == http_status)
{ {