summaryrefslogtreecommitdiff
path: root/nexus/src/main/kotlin/tech/libeufin/nexus/server
diff options
context:
space:
mode:
authorms <ms@taler.net>2021-10-13 12:04:23 +0200
committerms <ms@taler.net>2021-10-13 12:04:23 +0200
commit07e69ce08561e1b300dd4b2eecc286b6f5179e3b (patch)
tree98e01d95d684d3c9454bb27289610ceb5f84f537 /nexus/src/main/kotlin/tech/libeufin/nexus/server
parent856605c4048e47d05d4bcb583ed06c5f8cc36d28 (diff)
downloadlibeufin-07e69ce08561e1b300dd4b2eecc286b6f5179e3b.tar.gz
libeufin-07e69ce08561e1b300dd4b2eecc286b6f5179e3b.tar.bz2
libeufin-07e69ce08561e1b300dd4b2eecc286b6f5179e3b.zip
fix URL concatenation
Diffstat (limited to 'nexus/src/main/kotlin/tech/libeufin/nexus/server')
-rw-r--r--nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt12
1 files changed, 4 insertions, 8 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
index cfa42f69..51b0a1d0 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -894,12 +894,10 @@ val nexusApp: Application.() -> Unit = {
FacadeShowInfo(
name = f.facadeName,
type = f.type,
- baseUrl = call.url {
- parameters.clear()
- encodedPath = call.request.getBaseUrl()
+ baseUrl = URLBuilder(call.request.getBaseUrl()).apply {
pathComponents("facades", f.facadeName, f.type)
encodedPath += "/"
- },
+ }.buildString(),
config = getFacadeState(f.type, f)
)
}
@@ -921,12 +919,10 @@ val nexusApp: Application.() -> Unit = {
FacadeShowInfo(
name = it.facadeName,
type = it.type,
- baseUrl = call.url {
- parameters.clear()
- encodedPath = call.request.getBaseUrl()
+ baseUrl = URLBuilder(call.request.getBaseUrl()).apply {
pathComponents("facades", it.facadeName, it.type)
encodedPath += "/"
- },
+ }.buildString(),
config = getFacadeState(it.type, it)
)
)