get rid of base64x temporarily since it doesn't work on arm64.

This commit is contained in:
fiatjaf
2025-03-19 14:59:48 -03:00
parent 7c9c5d7cd9
commit c1d9c094ee
5 changed files with 12 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ import (
"bytes"
"context"
"crypto/sha256"
"encoding/base64"
"encoding/hex"
"fmt"
"hash"
@@ -12,7 +13,6 @@ import (
"net/http"
"strconv"
"github.com/cloudwego/base64x"
jsoniter "github.com/json-iterator/go"
"github.com/nbd-wtf/go-nostr"
)
@@ -131,7 +131,7 @@ func generateAuthHeader(sk, host string, fileHash hash.Hash) (string, error) {
return "", fmt.Errorf("json.Marshal: %w", err)
}
payload := base64x.StdEncoding.EncodeToString(b)
payload := base64.StdEncoding.EncodeToString(b)
return fmt.Sprintf("Nostr %s", payload), nil
}