From 76d3a916004555b3d82f9b14e55fef883defd02b Mon Sep 17 00:00:00 2001 From: Sam Samskies Date: Thu, 8 Aug 2024 09:51:01 -0500 Subject: [PATCH] authorization should not be in the form data --- nip96.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/nip96.ts b/nip96.ts index 8952ac2..9e970da 100644 --- a/nip96.ts +++ b/nip96.ts @@ -340,9 +340,6 @@ export async function uploadFile( // Create FormData object const formData = new FormData() - // Append the authorization header to HTML Form Data - formData.append('Authorization', nip98AuthorizationHeader) - // Append optional fields to FormData optionalFormDataFields && Object.entries(optionalFormDataFields).forEach(([key, value]) => {