diff --git a/prom-revisionist.go b/prom-revisionist.go index c1bb26e..bf70d94 100644 --- a/prom-revisionist.go +++ b/prom-revisionist.go @@ -137,6 +137,11 @@ func main() { } proxyReq.Header = req.Header + username, password, ok := req.BasicAuth() + if ok { + proxyReq.SetBasicAuth(username, password) + } + resp, err := http.DefaultClient.Do(proxyReq) if err != nil { log.Printf("failed to created request: %s", err) @@ -241,6 +246,11 @@ func main() { } proxyReq.Header = req.Header + username, password, ok := req.BasicAuth() + if ok { + proxyReq.SetBasicAuth(username, password) + } + resp, err := http.DefaultClient.Do(proxyReq) if err != nil { log.Printf("failed to created request: %s", err)