gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: fix reading of URI parameters


From: gnunet
Subject: [libeufin] branch master updated: fix reading of URI parameters
Date: Sat, 18 Sep 2021 13:24:53 +0200

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 18abe97  fix reading of URI parameters
18abe97 is described below

commit 18abe977d1b92a032cf6728fe99ce4b4777d6380
Author: ms <ms@taler.net>
AuthorDate: Sat Sep 18 13:24:49 2021 +0200

    fix reading of URI parameters
---
 sandbox/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
index 40d1b5c..c64e7b7 100644
--- 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 {

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