diff --git a/controllers/actions.summerwind.net/horizontal_runner_autoscaler_webhook.go b/controllers/actions.summerwind.net/horizontal_runner_autoscaler_webhook.go index a377fb9f..09013c7f 100644 --- a/controllers/actions.summerwind.net/horizontal_runner_autoscaler_webhook.go +++ b/controllers/actions.summerwind.net/horizontal_runner_autoscaler_webhook.go @@ -115,7 +115,7 @@ func (autoscaler *HorizontalRunnerAutoscalerGitHubWebhook) Handle(w http.Respons }() // respond ok to GET / e.g. for health check - if r.Method == http.MethodGet { + if strings.ToUpper(r.Method) == http.MethodGet { ok = true fmt.Fprintln(w, "webhook server is running") return