gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: fix status code (#7301)


From: gnunet
Subject: [libeufin] branch master updated: fix status code (#7301)
Date: Fri, 13 Jan 2023 16:14:18 +0100

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

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new a8ab0e49 fix status code (#7301)
a8ab0e49 is described below

commit a8ab0e493d16642fb5503e4409dca8e7804b28b7
Author: MS <ms@taler.net>
AuthorDate: Fri Jan 13 16:13:35 2023 +0100

    fix status code (#7301)
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
index c5cb75a8..eae01b42 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
@@ -424,7 +424,13 @@ private suspend fun historyOutgoing(call: ApplicationCall) 
{
             }
         }
     }
-    call.respond(TextContent(customConverter(history), 
ContentType.Application.Json))
+    val responseCode = if (history.outgoing_transactions.size == 0)
+        HttpStatusCode.NoContent else
+        HttpStatusCode.OK
+    call.respond(
+        status = responseCode,
+        TextContent(customConverter(history), ContentType.Application.Json)
+    )
 }
 
 /**

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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