Fixed a bug introduced while adding the url check (sorry!)
This commit is contained in:
parent
83ab52a231
commit
d8b3f76459
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue