From 5c9098bae79c24e88d4761a1879456369f0551cf Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Fri, 30 Aug 2024 17:26:37 -0400 Subject: [PATCH] Update go-fed/httpsig to v1.1.0 (part 2) --- actor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actor.go b/actor.go index 7ac539d..462e246 100644 --- a/actor.go +++ b/actor.go @@ -454,7 +454,7 @@ func (a *Actor) signedHTTPPost(content map[string]interface{}, to string) (err e log.Info(err) return } - postSigner, _, _ := httpsig.NewSigner([]httpsig.Algorithm{httpsig.RSA_SHA256}, "SHA-256", []string{"(request-target)", "date", "host", "digest"}, httpsig.Signature) + postSigner, _, _ := httpsig.NewSigner([]httpsig.Algorithm{httpsig.RSA_SHA256}, "SHA-256", []string{"(request-target)", "date", "host", "digest"}, httpsig.Signature, 0) byteCopy := make([]byte, len(b)) copy(byteCopy, b) @@ -521,7 +521,7 @@ func (a *Actor) signedHTTPGet(address string) (string, error) { req.Header.Add("Accept", "application/activity+json; profile=\"https://www.w3.org/ns/activitystreams\"") // set up the http signer - signer, _, _ := httpsig.NewSigner([]httpsig.Algorithm{httpsig.RSA_SHA256}, "SHA-256", []string{"(request-target)", "date", "host", "digest"}, httpsig.Signature) + signer, _, _ := httpsig.NewSigner([]httpsig.Algorithm{httpsig.RSA_SHA256}, "SHA-256", []string{"(request-target)", "date", "host", "digest"}, httpsig.Signature, 0) err = signer.SignRequest(a.privateKey, a.publicKeyID, req, nil) if err != nil { log.Error("Can't sign the request")