mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-05 04:08:08 -06:00
start work on AP inbox post
This commit is contained in:
parent
742f985d5b
commit
d09a8a1f05
12 changed files with 207 additions and 22 deletions
|
|
@ -54,8 +54,8 @@ func NewController(config *config.Config, clock pub.Clock, client pub.HttpClient
|
|||
func (c *controller) NewTransport(pubKeyID string, privkey crypto.PrivateKey) (pub.Transport, error) {
|
||||
prefs := []httpsig.Algorithm{httpsig.RSA_SHA256, httpsig.RSA_SHA512}
|
||||
digestAlgo := httpsig.DigestSha256
|
||||
getHeaders := []string{"(request-target)", "date", "accept"}
|
||||
postHeaders := []string{"(request-target)", "date", "accept", "digest"}
|
||||
getHeaders := []string{"(request-target)", "host", "date"}
|
||||
postHeaders := []string{"(request-target)", "host", "date", "digest"}
|
||||
|
||||
getSigner, _, err := httpsig.NewSigner(prefs, digestAlgo, getHeaders, httpsig.Signature)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue