Permalink
Browse files

Allow to query graphite with Auth informations

1 parent e0c6b4c commit 99f01b424f7b7b7ab295907646b95d3d4ffdb143 Brice Maron committed Sep 25, 2015
Showing with 1 addition and 0 deletions.
  1. +1 −0 graphite/graphite.go
@@ -62,6 +62,7 @@ func (r *Request) Query(host string, header http.Header) (Response, error) {
if u.Path != "" {
r.URL.Path = u.Path
}
+ r.URL.User = u.User
}
req, err := http.NewRequest("GET", r.URL.String(), nil)
if err != nil {

0 comments on commit 99f01b4

Please sign in to comment.