From 1e3aec73dea89ac70877669f99935f3f76bf18b7 Mon Sep 17 00:00:00 2001 From: Sandra Vrtikapa Date: Wed, 24 Aug 2022 10:41:39 -0400 Subject: [PATCH] fix: Orb did:web endpoint for file did.json should return document not resolution result Orb did:web endpoint for file did.json should return document not resolution result Closes #1447 Signed-off-by: Sandra Vrtikapa --- pkg/discovery/endpoint/restapi/operations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/discovery/endpoint/restapi/operations.go b/pkg/discovery/endpoint/restapi/operations.go index 0ca888e2b..2762785c1 100644 --- a/pkg/discovery/endpoint/restapi/operations.go +++ b/pkg/discovery/endpoint/restapi/operations.go @@ -231,7 +231,7 @@ func (o *Operation) orbWebDIDHandler(rw http.ResponseWriter, r *http.Request) { return } - writeResponse(rw, result) + writeResponse(rw, result.Document) } // webDIDHandler swagger:route Get /.well-known/did.json discovery wellKnownDIDReq