Skip to content

Commit

Permalink
fix: missing url in http connection creation (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored Jul 16, 2024
1 parent f440316 commit fa887ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connection/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fa887ae

Please sign in to comment.