diff options
author | Chocobozzz <me@florianbigard.com> | 2018-10-23 11:38:48 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-11-14 16:32:27 +0100 |
commit | df66d81583e07ce049daeeef1edc6a87b57b3684 (patch) | |
tree | 2a12747cd442713807e2b7d93899bc621d303459 /server/initializers | |
parent | b83b8dd5aef03084133c5983de6f312e7d1654b8 (diff) | |
download | PeerTube-df66d81583e07ce049daeeef1edc6a87b57b3684.tar.gz PeerTube-df66d81583e07ce049daeeef1edc6a87b57b3684.tar.zst PeerTube-df66d81583e07ce049daeeef1edc6a87b57b3684.zip |
Add compatibility with other Linked Signature algorithms
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 28d51068b..9aadbe824 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -535,7 +535,7 @@ const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = { | |||
535 | const HTTP_SIGNATURE = { | 535 | const HTTP_SIGNATURE = { |
536 | HEADER_NAME: 'signature', | 536 | HEADER_NAME: 'signature', |
537 | ALGORITHM: 'rsa-sha256', | 537 | ALGORITHM: 'rsa-sha256', |
538 | HEADERS_TO_SIGN: [ 'date', 'host', 'digest', '(request-target)' ] | 538 | HEADERS_TO_SIGN: [ '(request-target)', 'host', 'date', 'digest' ] |
539 | } | 539 | } |
540 | 540 | ||
541 | // --------------------------------------------------------------------------- | 541 | // --------------------------------------------------------------------------- |