Skip to content

Commit

Permalink
Merge pull request #7 from salsadigitalauorg/feat/default-http-handler
Browse files Browse the repository at this point in the history
Fix: Set handler without basic auth.
  • Loading branch information
steveworley authored Jul 2, 2024
2 parents 1d73d9e + f6d92fa commit dfcdaa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func SetupRoutes (r *gin.RouterGroup, monitors []cfg.MonitorConfig) {
expectation = &expectations.Http{}
if monitor.Username != "" && monitor.Password != "" {
expectation.WithAuth(monitor.Username, monitor.Password).WithUrl(monitor.Url)
} else {
expectation.WithUrl(monitor.Url)
}
case "tcp":
expectation = &expectations.Tcp{}
Expand Down

0 comments on commit dfcdaa3

Please sign in to comment.