Skip to content

Commit

Permalink
fix: decode response when initialize token (#187)
Browse files Browse the repository at this point in the history
Co-authored-by: ducnv <ducnguyenvan@bizflycloud.vn>
  • Loading branch information
duc20176723 and ducnv authored Jul 18, 2024
1 parent c91fa42 commit 55dd271
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions token.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ func (t *token) init(ctx context.Context, tcr *TokenCreateRequest) (*Token, erro
return nil, err
}
defer resp.Body.Close()
if err := json.NewDecoder(resp.Body).Decode(&tok); err != nil {
return nil, err
}
}

// Get new services catalog after create token
Expand Down

0 comments on commit 55dd271

Please sign in to comment.