libeufin

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

commit 18abe977d1b92a032cf6728fe99ce4b4777d6380
parent 628975926407cf04a3c80a0661ff76f4e382f94b
Author: ms <ms@taler.net>
Date:   Sat, 18 Sep 2021 13:24:49 +0200

fix reading of URI parameters

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt @@ -998,7 +998,7 @@ fun serverMain(dbName: String, port: Int) { * entropy to prevent guesses. */ get("/api/withdrawal-operation/{wopid}") { - val wopid: String = ensureNonNull("wopid") + val wopid: String = ensureNonNull(call.parameters["wopid"]) val wo = transaction { TalerWithdrawalEntity.find { @@ -1022,7 +1022,7 @@ fun serverMain(dbName: String, port: Int) { * is as well collected in this request. */ post("/withdrawal-operation/{wopid}") { - val wopid = ensureNonNull("wopid") + val wopid: String = ensureNonNull(call.parameters["wopid"]) val body = call.receiveJson<TalerWithdrawalConfirmation>() transaction {