From a1637fa1e25b60a88f7cfe50aac8953f50d55761 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 8 Jul 2021 10:55:16 +0200 Subject: Specify if we want to fallback to the server token --- shared/extra-utils/custom-pages/custom-pages-command.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shared/extra-utils/custom-pages') diff --git a/shared/extra-utils/custom-pages/custom-pages-command.ts b/shared/extra-utils/custom-pages/custom-pages-command.ts index a062c9774..0dd77503e 100644 --- a/shared/extra-utils/custom-pages/custom-pages-command.ts +++ b/shared/extra-utils/custom-pages/custom-pages-command.ts @@ -9,7 +9,9 @@ export class CustomPagesCommand extends AbstractCommand { return this.getRequestBody({ ...options, + path, + implicitToken: false, defaultExpectedStatus: HttpStatusCode.OK_200 }) } @@ -22,8 +24,10 @@ export class CustomPagesCommand extends AbstractCommand { return this.putBodyRequest({ ...options, + path, fields: { content }, + implicitToken: true, defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204 }) } -- cgit v1.2.3