Skip to content

Commit

Permalink
IG-11657: Fix health check. (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtopper authored and gshatz committed Apr 30, 2019
1 parent 47575ff commit 8c7a02d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8c7a02d

Please sign in to comment.