What is Nostr?
NotBiebs /
npub1vp8…npsw
2024-08-08 04:23:05

NotBiebs on Nostr: fishcake or anyone else, do you know why nostr-tools is adding the auth header to the ...

fishcake (npub137c…k37w) or anyone else, do you know why nostr-tools is adding the auth header to the form data in nip96.uploadFile? I was struggling trying to get this to work for a while and eventually I caught this. This causes nostr.build to return a 400 error cause it thinks there's multiple files in the payload. Brah I was ready to throw my computer out the window. 😂

https://github.com/nbd-wtf/nostr-tools/blob/6f334f31a75c63b452c966ecf50daf271275f3fa/nip96.ts#L344

I can make a PR tomorrow to remove this line.
Author Public Key
npub1vp8fdcyejd4pqjyrjk9sgz68vuhq7pyvnzk8j0ehlljvwgp8n6eqsrnpsw