aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-05 16:20:17 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-05 16:20:17 +0000
commit45a05dbdc9d0bc7c3a53a339dcf91080e4f0ec3d (patch)
treeb822a4408f42750fd6b14362e81b283bd4cb56cf
parent8a4d294e06f0931ee153bb5f722798a34ec4047e (diff)
downloadcommunique-45a05dbdc9d0bc7c3a53a339dcf91080e4f0ec3d.tar.gz
try no date
-rw-r--r--registry/registry.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/registry/registry.go b/registry/registry.go
index 93b66dc..eb53171 100644
--- a/registry/registry.go
+++ b/registry/registry.go
@@ -276,8 +276,8 @@ 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"}
- signer, _, err := httpsig.NewSigner(prefs, digestAlgorithm, headersToSign, httpsig.Signature, 300) // expires in 5 mins
+ headersToSign := []string{httpsig.RequestTarget, "host", "digest", "content-type"}
+ signer, _, err := httpsig.NewSigner(prefs, digestAlgorithm, headersToSign, httpsig.Signature, 0) // expires in 5 mins
if err != nil {
return err
}