mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-18 01:56:30 +01:00
get rid of base64x temporarily since it doesn't work on arm64.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user