diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-12-02 16:10:18 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-12-02 16:14:53 -0700 |
commit | 60d3e658ceaf7a0f0fcaf3e8ef8edda99661681c (patch) | |
tree | 5e9ca398c9c18fbe1094b1f9756672a3412f95bd /pkg | |
parent | 7984842d7e55baa8fc9498afa23b62113850feac (diff) | |
download | podman-60d3e658ceaf7a0f0fcaf3e8ef8edda99661681c.tar.gz podman-60d3e658ceaf7a0f0fcaf3e8ef8edda99661681c.tar.bz2 podman-60d3e658ceaf7a0f0fcaf3e8ef8edda99661681c.zip |
Change bindings to stop two API calls for ping
* existing code caused an unnecessary 301 redirect
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/bindings/connection.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/connection.go b/pkg/bindings/connection.go index 31435ae91..a5683796a 100644 --- a/pkg/bindings/connection.go +++ b/pkg/bindings/connection.go @@ -152,7 +152,7 @@ func pingNewConnection(ctx context.Context) error { return err } // 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 { return err } |