Skip to content

Commit

Permalink
Added Close() to the response object for status queries
Browse files Browse the repository at this point in the history
  • Loading branch information
gamolina committed May 13, 2024
1 parent 8645bf9 commit b9c06e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions quanta-proxy-lib/tokenservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func (s *TokenExchangeService) HandleStatusRequest(w http.ResponseWriter, r *htt
} else {
u.Debugf("Cluster State = %s, Active nodes = %d, Target Cluster Size = %d\n", status.String(), active, size)
SuccessResponse(&w, struct{}{})
defer r.Body.Close()
}
default:
ErrorResponse(&w, 405, "Method not allowed", "Method not allowed", nil)
Expand Down

0 comments on commit b9c06e0

Please sign in to comment.