mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-06 22:20:08 +02:00
fix blank case on NormalizeURL().
This commit is contained in:
@@ -6,6 +6,10 @@ import (
|
||||
)
|
||||
|
||||
func NormalizeURL(u string) string {
|
||||
if u == "" {
|
||||
return ""
|
||||
}
|
||||
|
||||
if !strings.HasPrefix(u, "http") && !strings.HasPrefix(u, "ws") {
|
||||
u = "wss://" + u
|
||||
}
|
||||
|
Reference in New Issue
Block a user