diff --git a/cmd/streams/handlers.go b/cmd/streams/handlers.go index 36f47b33..c9fa2eeb 100644 --- a/cmd/streams/handlers.go +++ b/cmd/streams/handlers.go @@ -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 }