Skip to content

Commit

Permalink
authorization should not be in the form data
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSamskies authored and fiatjaf committed Aug 8, 2024
1 parent 6f334f3 commit 76d3a91
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nip96.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]) => {
Expand Down

0 comments on commit 76d3a91

Please sign in to comment.