From f410b68f83ce8e286fd4896d3c59cbdd1310ee90 Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Tue, 5 Nov 2024 10:36:07 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Upload=20Proxy=20failing?= =?UTF-8?q?=20Authorization=20(#12)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: 🤖 add bearer to http headers auth * chore: 🤖 changeset --- .changeset/neat-pears-lick.md | 5 +++++ src/clients/uploadProxy.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/neat-pears-lick.md diff --git a/.changeset/neat-pears-lick.md b/.changeset/neat-pears-lick.md new file mode 100644 index 0000000..e54c1f1 --- /dev/null +++ b/.changeset/neat-pears-lick.md @@ -0,0 +1,5 @@ +--- +'@fleek-platform/sdk': patch +--- + +Fix Upload Proxy failing Authorization headers for Delete diff --git a/src/clients/uploadProxy.ts b/src/clients/uploadProxy.ts index bc2463c..f034edc 100644 --- a/src/clients/uploadProxy.ts +++ b/src/clients/uploadProxy.ts @@ -290,7 +290,7 @@ export class UploadProxyClient { return fetch(url, { method: 'DELETE', headers: { - Authorization: ` ${accessToken}`, + Authorization: `Bearer ${accessToken}`, }, }); };