forked from mirror/client_golang
commit
1cdba8fdde
|
@ -138,7 +138,9 @@ func (h *httpAPI) Query(ctx context.Context, query string, ts time.Time) (model.
|
||||||
q := u.Query()
|
q := u.Query()
|
||||||
|
|
||||||
q.Set("query", query)
|
q.Set("query", query)
|
||||||
|
if !ts.IsZero() {
|
||||||
q.Set("time", ts.Format(time.RFC3339Nano))
|
q.Set("time", ts.Format(time.RFC3339Nano))
|
||||||
|
}
|
||||||
|
|
||||||
u.RawQuery = q.Encode()
|
u.RawQuery = q.Encode()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue