gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] 02/09: 204 responses with less code.


From: gnunet
Subject: [libeufin] 02/09: 204 responses with less code.
Date: Fri, 20 Jan 2023 16:49:36 +0100

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

ms pushed a commit to branch master
in repository libeufin.

commit 1e1464497948747c59c3b0fcf859c257b6ea212e
Author: MS <ms@taler.net>
AuthorDate: Fri Jan 20 14:32:16 2023 +0100

    204 responses with less code.
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
index 66efe910..f14d5552 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
@@ -424,10 +424,7 @@ private suspend fun historyOutgoing(call: ApplicationCall) 
{
         }
     }
     if (history.outgoing_transactions.size == 0) {
-        call.respondBytes(
-            bytes = ByteArray(0),
-            status = HttpStatusCode.NoContent
-        )
+        call.respond(HttpStatusCode.NoContent)
         return
     }
     call.respond(
@@ -476,10 +473,7 @@ private suspend fun historyIncoming(call: ApplicationCall) 
{
         }
     }
     if (history.incoming_transactions.size == 0) {
-        call.respondBytes(
-            bytes = ByteArray(0),
-            status = HttpStatusCode.NoContent
-        )
+        call.respond(HttpStatusCode.NoContent)
         return
     }
     return call.respond(

-- 
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]