aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/server/redundancy-command.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-08 10:55:16 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:17 +0200
commita1637fa1e25b60a88f7cfe50aac8953f50d55761 (patch)
tree4d0cc82eef618619a7bcb747812cc7b21e0d8776 /shared/extra-utils/server/redundancy-command.ts
parent04aed76711909507e74905bde3a7fa024d3585c9 (diff)
downloadPeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.tar.gz
PeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.tar.zst
PeerTube-a1637fa1e25b60a88f7cfe50aac8953f50d55761.zip
Specify if we want to fallback to the server token
Diffstat (limited to 'shared/extra-utils/server/redundancy-command.ts')
-rw-r--r--shared/extra-utils/server/redundancy-command.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/extra-utils/server/redundancy-command.ts b/shared/extra-utils/server/redundancy-command.ts
index d717d35f8..728332fdd 100644
--- a/shared/extra-utils/server/redundancy-command.ts
+++ b/shared/extra-utils/server/redundancy-command.ts
@@ -16,6 +16,7 @@ export class RedundancyCommand extends AbstractCommand {
16 16
17 path, 17 path,
18 fields: { redundancyAllowed }, 18 fields: { redundancyAllowed },
19 implicitToken: true,
19 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 20 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
20 }) 21 })
21 } 22 }
@@ -42,6 +43,7 @@ export class RedundancyCommand extends AbstractCommand {
42 target 43 target
43 }, 44 },
44 45
46 implicitToken: true,
45 defaultExpectedStatus: HttpStatusCode.OK_200 47 defaultExpectedStatus: HttpStatusCode.OK_200
46 }) 48 })
47 } 49 }
@@ -57,6 +59,7 @@ export class RedundancyCommand extends AbstractCommand {
57 59
58 path, 60 path,
59 fields: { videoId }, 61 fields: { videoId },
62 implicitToken: true,
60 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 63 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
61 }) 64 })
62 } 65 }
@@ -71,6 +74,7 @@ export class RedundancyCommand extends AbstractCommand {
71 ...options, 74 ...options,
72 75
73 path, 76 path,
77 implicitToken: true,
74 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 78 defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
75 }) 79 })
76 } 80 }