From aedbbb7ca69163ec163bbe88d0756ec6bbac5031 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Thu, 5 Jan 2023 18:56:18 -0500 Subject: typo --- registry/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/registry.go b/registry/registry.go index 2280e1d..5f128f5 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -294,7 +294,7 @@ func (r *Registry) deliverAcceptToInbox(url, actorUrl, actorKeyUrl *url.URL, fol h := sha256.New() h.Write(jsonData) - var header = `keyId="` + actorKeyUrl.Host + `",algorithm="rsa-sha256",headers="(request-target) content-type date digest host",signature="` + b64sig + `"` + var header = `keyId="` + actorKeyUrl.String() + `",algorithm="rsa-sha256",headers="(request-target) content-type date digest host",signature="` + b64sig + `"` request.Header.Add("Digest", "SHA-256="+base64.StdEncoding.EncodeToString(h.Sum(nil))) request.Header.Add("Content-Type", "application/activity+json") -- cgit v1.2.3