pakstr 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/blossom.js +1 -1
- package/package.json +1 -1
package/dist/core/blossom.js
CHANGED
|
@@ -76,7 +76,7 @@ async function uploadToBlossom(opts) {
|
|
|
76
76
|
content: `Upload ${sha256}`,
|
|
77
77
|
}, opts.secret);
|
|
78
78
|
// 3. PUT /upload with the signed auth event in the Authorization header.
|
|
79
|
-
const authHeader = "Nostr " + Buffer.from(JSON.stringify(authEvent)).toString("
|
|
79
|
+
const authHeader = "Nostr " + Buffer.from(JSON.stringify(authEvent)).toString("base64url");
|
|
80
80
|
const body = fs_1.default.readFileSync(opts.filePath);
|
|
81
81
|
const res = await fetchFn(`${serverUrl}/upload`, {
|
|
82
82
|
method: "PUT",
|