commit bb19654bb584d8abb4eb94b4c6ee0cdf6437a5e7
parent e6cb07cf62015f2aef5683192cf3841686839462
Author: MS <ms@taler.net>
Date: Wed, 29 Jul 2020 15:36:51 +0200
remove comment
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -789,7 +789,10 @@ private suspend fun ApplicationCall.receiveEbicsXml(): Document {
throw EbicsInvalidXmlError()
}
val requestedHostID = requestDocument.getElementsByTagName("HostID")
- this.attributes.put(AttributeKey("RequestedEbicsHostID"), requestedHostID.item(0).nodeValue)
+ this.attributes.put(
+ AttributeKey<String>("RequestedEbicsHostID"),
+ requestedHostID.item(0).textContent
+ )
return requestDocument
}
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -207,8 +207,6 @@ fun serverMain(dbName: String) {
HttpStatusCode.OK
)
}
-
- // todo: check that this error is never thrown upon EBICS errors.
exception<SandboxError> { cause ->
LOGGER.error("Exception while handling '${call.request.uri}'", cause)
call.respond(