Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to /healthz response (v2.10) #4467

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Fixes to /healthz response (v2.10) #4467

merged 1 commit into from
Sep 1, 2023

Conversation

wallyqs
Copy link
Member

@wallyqs wallyqs commented Aug 31, 2023

Follow up from #4437 content-type fix for v2.9.22, some fixes to the response from /healthz for dev:

  • In #3326 it was changed to return 500 status when before we used to return 503 so this changes it back.
  • Also as part of Added param options to /healthz endpoint #3326 we started to return status_code in the healthz response (e.g {"status":"ok","status_code":200}) so this removes it for http responses just relying on the http header.

@wallyqs wallyqs requested a review from a team as a code owner August 31, 2023 21:24
Signed-off-by: Waldemar Quevedo <wally@synadia.com>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Small nit, and make sure tests can be green.

@@ -2339,7 +2339,6 @@ func ResponseHandler(w http.ResponseWriter, r *http.Request, data []byte) {
func handleResponse(code int, w http.ResponseWriter, r *http.Request, data []byte) {
// Get callback from request
callback := r.URL.Query().Get("callback")
// If callback is not empty then
if callback != "" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EMPTY

@derekcollison derekcollison merged commit cb8b94a into dev Sep 1, 2023
0 of 2 checks passed
@derekcollison derekcollison deleted the healthz-mon-fixes branch September 1, 2023 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants