automatic format

This commit is contained in:
Luis I. Perez 2016-05-02 23:00:41 +02:00
parent 96f97edbd1
commit be91cc8d28
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ func (g *haproxy) gatherServer(addr string, acc telegraf.Accumulator) error {
u, err := url.Parse(addr)
if err != nil {
return fmt.Errorf("Unable parse server address '%s': %s", addr, err)
}
}
//Checking for default Haproxy Status page
req, err := http.NewRequest("GET", fmt.Sprintf("%s://%s%s?%s", u.Scheme, u.Host, u.Path, u.RawQuery), nil)
if u.User != nil {