summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-06-10 20:42:26 +0200
committerLibravatar GitHub <noreply@github.com>2024-06-10 19:42:26 +0100
commitebdcb00d0a24fe00ed316c8a43c318b030ab95fc (patch)
treed898aacd114216391f0b0cdf082b6d08735721f9 /internal
parent[chore]: Bump golang.org/x/image from 0.16.0 to 0.17.0 (#2985) (diff)
downloadgotosocial-ebdcb00d0a24fe00ed316c8a43c318b030ab95fc.tar.xz
[chore] Roll back use of `(created)` pseudo-header pending #2991 (#2992)
Diffstat (limited to 'internal')
-rw-r--r--internal/transport/signing.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/transport/signing.go b/internal/transport/signing.go
index fa15eee5e..da3b6dc46 100644
--- a/internal/transport/signing.go
+++ b/internal/transport/signing.go
@@ -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.