From 8c7a02d93976fd336e2a16a947a3af88fb9d3196 Mon Sep 17 00:00:00 2001 From: Gal Topper Date: Tue, 30 Apr 2019 16:11:29 +0300 Subject: [PATCH] IG-11657: Fix health check. (#39) --- web/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/web.go b/web/web.go index e0cf0257cfd..e0f25d2010e 100644 --- a/web/web.go +++ b/web/web.go @@ -354,9 +354,9 @@ func New(logger log.Logger, o *Options) *Handler { return } req.Header.Add("X-v3io-function", "GetItem") - req.Body = ioutil.NopCloser(strings.NewReader(`{AttibutesToGet:"__name"}`)) + req.Body = ioutil.NopCloser(strings.NewReader(`{"AttributesToGet":"__name"}`)) if o.V3ioConfig.AccessKey != "" { - req.Header.Add("X-v3io-access-key", o.V3ioConfig.AccessKey) + req.Header.Add("X-v3io-session-key", o.V3ioConfig.AccessKey) } else if o.V3ioConfig.Password != "" { base64UserPassword := base64.StdEncoding.EncodeToString([]byte(o.V3ioConfig.Username + ":" + o.V3ioConfig.Password)) req.Header.Add("Authorization", "Basic "+base64UserPassword)