aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-05 23:56:18 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-05 23:56:18 +0000
commitaedbbb7ca69163ec163bbe88d0756ec6bbac5031 (patch)
tree709d5f4aa2f9794135b0a82bf647c9bb52d726e5
parent8611bf49e7ed616efa75b00144ac45a664655e98 (diff)
downloadcommunique-aedbbb7ca69163ec163bbe88d0756ec6bbac5031.tar.gz
typo
-rw-r--r--registry/registry.go2
1 files changed, 1 insertions, 1 deletions
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")