use NormalizeURL() on nip11.Fetch()

This commit is contained in:
fiatjaf
2024-03-10 18:44:56 -03:00
parent ec1e86e505
commit c844dc2ccb
2 changed files with 8 additions and 8 deletions

View File

@@ -41,4 +41,8 @@ func TestFetch(t *testing.T) {
if err != nil || res.Name == "" {
t.Errorf("failed to fetch from https")
}
res, err = Fetch(context.Background(), "relay.nostr.bg")
if err != nil || res.Name == "" {
t.Errorf("failed to fetch without protocol")
}
}