Webfinger + Small fixes (#20)
This commit is contained in:
@ -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"}
|
||||
postHeaders := []string{"(request-target)", "date", "digest"}
|
||||
getHeaders := []string{"(request-target)", "date", "accept"}
|
||||
postHeaders := []string{"(request-target)", "date", "accept", "digest"}
|
||||
|
||||
getSigner, _, err := httpsig.NewSigner(prefs, digestAlgo, getHeaders, httpsig.Signature)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user