added function to fetch NIP-11 documents

This commit is contained in:
Dylan Cant
2023-01-31 11:48:48 -05:00
committed by fiatjaf
parent 92c0143762
commit de78b2c054
2 changed files with 55 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import (
"strings"
)
// NormalizeURL normalizes the url and replaces http://, https:// schemes by ws://, wss://.
func NormalizeURL(u string) string {
if u == "" {
return ""