From 60d3e658ceaf7a0f0fcaf3e8ef8edda99661681c Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Wed, 2 Dec 2020 16:10:18 -0700 Subject: Change bindings to stop two API calls for ping * existing code caused an unnecessary 301 redirect Signed-off-by: Jhon Honce --- pkg/bindings/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/bindings') 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 } -- cgit v1.2.3-54-g00ecf