From de5782e0e00410d45913a5c7a20805e11ce1ab13 Mon Sep 17 00:00:00 2001 From: waltkb <68587968+waltkb@users.noreply.github.com> Date: Sun, 26 Nov 2023 21:46:22 +0100 Subject: [PATCH] fix: did:web URI --- src/main/kotlin/id/walt/model/did/DidWeb.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/id/walt/model/did/DidWeb.kt b/src/main/kotlin/id/walt/model/did/DidWeb.kt index ef9e37d0..a9429c60 100644 --- a/src/main/kotlin/id/walt/model/did/DidWeb.kt +++ b/src/main/kotlin/id/walt/model/did/DidWeb.kt @@ -63,7 +63,7 @@ class DidWeb( getPath(didUrl).let { path -> return when { path.isEmpty() -> URI.create("https://${getDomain(didUrl)}/.well-known/did.json") - else -> URI.create("https://${getDomain(didUrl)}/${path}/did.json") + else -> URI.create("https://${getDomain(didUrl)}/.well-known/${path}/did.json") } } }