From fa887ae835d583ecf496babd78b7c16124018b40 Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Tue, 16 Jul 2024 14:31:59 +0530 Subject: [PATCH] fix: missing url in http connection creation (#910) --- connection/http.go | 1 + 1 file changed, 1 insertion(+) diff --git a/connection/http.go b/connection/http.go index 7ae7f4db..4313d3f3 100644 --- a/connection/http.go +++ b/connection/http.go @@ -148,6 +148,7 @@ func NewHTTPConnection(ctx ConnectionContext, conn models.Connection) (HTTPConne var httpConn HTTPConnection switch conn.Type { case models.ConnectionTypeHTTP, models.ConnectionTypePrometheus: + httpConn.URL = conn.URL if err := httpConn.Username.Scan(conn.Username); err != nil { return httpConn, fmt.Errorf("error scanning username: %w", err) }