mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-22 09:37:31 -06:00
parent
69aba377bc
commit
ebdcb00d0a
2 changed files with 11 additions and 7 deletions
|
|
@ -23,10 +23,12 @@ import (
|
|||
|
||||
var (
|
||||
// http signer preferences
|
||||
prefs = []httpsig.Algorithm{httpsig.RSA_SHA256}
|
||||
digestAlgo = httpsig.DigestSha256
|
||||
getHeaders = []string{httpsig.RequestTarget, "(created)", "host"}
|
||||
postHeaders = []string{httpsig.RequestTarget, "(created)", "host", "digest"}
|
||||
prefs = []httpsig.Algorithm{httpsig.RSA_SHA256}
|
||||
digestAlgo = httpsig.DigestSha256
|
||||
|
||||
// TODO: Update these to use `(created)` pseudo-header instead of `Date`.
|
||||
getHeaders = []string{httpsig.RequestTarget, "host", "date"}
|
||||
postHeaders = []string{httpsig.RequestTarget, "host", "date", "digest"}
|
||||
)
|
||||
|
||||
// NewGETSigner returns a new httpsig.Signer instance initialized with GTS GET preferences.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue