diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-05 16:05:05 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-05 16:05:05 +0000 |
commit | ace644230aad0039961a22cbf71e368fe8b11b46 (patch) | |
tree | 33423dffa724d1e246c6792e8096c0ebe6a44ac3 /registry | |
parent | 0c8d00a4396e7717b20a79769b0a6ee29c00ab24 (diff) | |
download | communique-ace644230aad0039961a22cbf71e368fe8b11b46.tar.gz |
dont sign digest header
Diffstat (limited to '')
-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 4b61a7b..fdc2166 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -276,7 +276,7 @@ func (r *Registry) deliverAcceptToInbox(url, actorUrl *url.URL, follow vocab.Act prefs := []httpsig.Algorithm{httpsig.RSA_SHA256} digestAlgorithm := httpsig.DigestSha256 // The "Date" and "Digest" headers must already be set on r, as well as r.URL. - headersToSign := []string{httpsig.RequestTarget, "host", "date", "digest", "content-type"} + headersToSign := []string{httpsig.RequestTarget, "host", "date", "content-type"} signer, _, err := httpsig.NewSigner(prefs, digestAlgorithm, headersToSign, httpsig.Signature, 0) if err != nil { return err |