libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

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

204 responses with less code.

Diffstat:
Mnexus/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 @@ -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(