Skip to content

Commit fa887ae

Browse files
authored
fix: missing url in http connection creation (#910)
1 parent f440316 commit fa887ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

connection/http.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ func NewHTTPConnection(ctx ConnectionContext, conn models.Connection) (HTTPConne
148148
var httpConn HTTPConnection
149149
switch conn.Type {
150150
case models.ConnectionTypeHTTP, models.ConnectionTypePrometheus:
151+
httpConn.URL = conn.URL
151152
if err := httpConn.Username.Scan(conn.Username); err != nil {
152153
return httpConn, fmt.Errorf("error scanning username: %w", err)
153154
}

0 commit comments

Comments
 (0)