diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-05 23:56:18 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-05 23:56:18 +0000 |
commit | aedbbb7ca69163ec163bbe88d0756ec6bbac5031 (patch) | |
tree | 709d5f4aa2f9794135b0a82bf647c9bb52d726e5 | |
parent | 8611bf49e7ed616efa75b00144ac45a664655e98 (diff) | |
download | communique-aedbbb7ca69163ec163bbe88d0756ec6bbac5031.tar.gz |
typo
-rw-r--r-- | registry/registry.go | 2 |
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") |