mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-20 11:08:24 +01:00
nip11: add user-agent for nostr.wine, replace dead relays
This commit is contained in:
@@ -36,8 +36,9 @@ func Fetch(ctx context.Context, u string) (info RelayInformationDocument, err er
|
||||
// make request
|
||||
req, _ := http.NewRequestWithContext(ctx, "GET", "http"+u[2:], nil)
|
||||
|
||||
// add the NIP-11 header
|
||||
// add the NIP-11 headers
|
||||
req.Header.Add("Accept", "application/nostr+json")
|
||||
req.Header.Add("User-Agent", "https://github.com/nbd-wtf/go-nostr")
|
||||
|
||||
// send the request
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
|
||||
Reference in New Issue
Block a user