Change bindings to stop two API calls for ping

* existing code caused an unnecessary 301 redirect

Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
Jhon Honce
2020-12-02 16:10:18 -07:00
parent 7984842d7e
commit 60d3e658ce

View File

@ -152,7 +152,7 @@ func pingNewConnection(ctx context.Context) error {
return err return err
} }
// the ping endpoint sits at / in this case // the ping endpoint sits at / in this case
response, err := client.DoRequest(nil, http.MethodGet, "../../../_ping", nil, nil) response, err := client.DoRequest(nil, http.MethodGet, "/_ping", nil, nil)
if err != nil { if err != nil {
return err return err
} }