From 71c68535ae3605cf4083ef264e7ce8440743cea4 Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Wed, 10 Jan 2024 10:41:38 +0100 Subject: [PATCH] Revert Basic to basic as the word checked by gitea api is basic Signed-off-by: cmoulliard --- packages/integration/src/gitea/core.test.ts | 2 +- packages/integration/src/gitea/core.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integration/src/gitea/core.test.ts b/packages/integration/src/gitea/core.test.ts index ba41fa4761..ac29c469b6 100644 --- a/packages/integration/src/gitea/core.test.ts +++ b/packages/integration/src/gitea/core.test.ts @@ -118,7 +118,7 @@ describe('gitea core', () => { password: 'P', }; - const basicAuthentication = `Basic ${Buffer.from( + const basicAuthentication = `basic ${Buffer.from( `${authRequest.username}:${authRequest.password}`, ).toString('base64')}`; diff --git a/packages/integration/src/gitea/core.ts b/packages/integration/src/gitea/core.ts index 6d11a4ffde..95caa24c06 100644 --- a/packages/integration/src/gitea/core.ts +++ b/packages/integration/src/gitea/core.ts @@ -120,7 +120,7 @@ export function getGiteaRequestOptions(config: GiteaIntegrationConfig): { } if (username) { - headers.Authorization = `Basic ${Buffer.from( + headers.Authorization = `basic ${Buffer.from( `${username}:${password}`, ).toString('base64')}`; } else {