aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-12-02 16:10:18 -0700
committerMatthew Heon <mheon@redhat.com>2020-12-07 14:54:33 -0500
commit704dff44c60b4bcb1327c7ef99289cda27baaae0 (patch)
tree6ea651890d082b6fc907ae0fd4938fdd1f67d9b4
parent4052afa5dffa2eddfc522a85bdeaab670b1231ac (diff)
downloadpodman-704dff44c60b4bcb1327c7ef99289cda27baaae0.tar.gz
podman-704dff44c60b4bcb1327c7ef99289cda27baaae0.tar.bz2
podman-704dff44c60b4bcb1327c7ef99289cda27baaae0.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>
-rw-r--r--pkg/bindings/connection.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/connection.go b/pkg/bindings/connection.go
index b0e3ceb9b..f2cb3147c 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
}