Fixed a bug introduced while adding the url check (sorry!)

This commit is contained in:
Martin Seener 2016-05-26 12:31:20 +02:00
parent 83ab52a231
commit d8b3f76459
1 changed files with 2 additions and 2 deletions

View File

@ -149,9 +149,9 @@ func (r *RabbitMQ) requestJSON(u string, target interface{}) error {
if r.URL == "" {
r.URL = DefaultURL
}
u = fmt.Sprintf("%s%s", url, u)
u = fmt.Sprintf("%s%s", r.URL, u)
req, err := http.NewRequest("GET", r.URL, nil)
req, err := http.NewRequest("GET", u, nil)
if err != nil {
return err
}