diff options
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/activitypub/security.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/api/activitypub/security.ts b/server/tests/api/activitypub/security.ts index 31ebc89b4..8e87361a9 100644 --- a/server/tests/api/activitypub/security.ts +++ b/server/tests/api/activitypub/security.ts | |||
@@ -58,7 +58,7 @@ async function makeFollowRequest (to: { url: string }, by: { url: string, privat | |||
58 | authorizationHeaderName: HTTP_SIGNATURE.HEADER_NAME, | 58 | authorizationHeaderName: HTTP_SIGNATURE.HEADER_NAME, |
59 | keyId: by.url, | 59 | keyId: by.url, |
60 | key: by.privateKey, | 60 | key: by.privateKey, |
61 | headers: HTTP_SIGNATURE.HEADERS_TO_SIGN | 61 | headers: HTTP_SIGNATURE.HEADERS_TO_SIGN_WITH_PAYLOAD |
62 | } | 62 | } |
63 | const headers = { | 63 | const headers = { |
64 | 'digest': buildDigest(body), | 64 | 'digest': buildDigest(body), |
@@ -82,7 +82,7 @@ describe('Test ActivityPub security', function () { | |||
82 | authorizationHeaderName: HTTP_SIGNATURE.HEADER_NAME, | 82 | authorizationHeaderName: HTTP_SIGNATURE.HEADER_NAME, |
83 | keyId: 'acct:peertube@' + servers[1].host, | 83 | keyId: 'acct:peertube@' + servers[1].host, |
84 | key: keys.privateKey, | 84 | key: keys.privateKey, |
85 | headers: HTTP_SIGNATURE.HEADERS_TO_SIGN | 85 | headers: HTTP_SIGNATURE.HEADERS_TO_SIGN_WITH_PAYLOAD |
86 | }) | 86 | }) |
87 | 87 | ||
88 | // --------------------------------------------------------------- | 88 | // --------------------------------------------------------------- |