Fix wrong stream name request

This commit is contained in:
Alexey Khit
2022-08-22 06:54:08 +03:00
parent fd0b8f3c39
commit 48f58d0669
+3
View File
@@ -19,6 +19,9 @@ func HandleFunc(scheme string, handler Handler) {
func HasProducer(url string) bool {
i := strings.IndexByte(url, ':')
if i <= 0 { // TODO: i < 4 ?
return false
}
return handlers[url[:i]] != nil
}