From adacddb97aab0cd44a5842c8ab9db873c6c61005 Mon Sep 17 00:00:00 2001 From: tyler Date: Wed, 31 Jan 2024 21:18:40 -0500 Subject: [PATCH] Fixed issue with validating stream url --- internal/chatbot/chatbot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/chatbot/chatbot.go b/internal/chatbot/chatbot.go index 0ad5df2..7d42f18 100644 --- a/internal/chatbot/chatbot.go +++ b/internal/chatbot/chatbot.go @@ -50,7 +50,7 @@ func NewChatBot(ctx context.Context, streamUrl string, cfg config.ChatBot, logEr } func validUrl(url string) string { - valid := strings.TrimLeft(url, "http://") + valid := url if !strings.HasPrefix(valid, "https://") { valid = "https://" + valid }