Reduce number of http superfluous messages (#894)
write to http.ResponseWriter create HTTP OK response, so set *ok* to disable error code in defered function
This commit is contained in:
@@ -101,6 +101,7 @@ func (autoscaler *HorizontalRunnerAutoscalerGitHubWebhook) Handle(w http.Respons
|
|||||||
|
|
||||||
// respond ok to GET / e.g. for health check
|
// respond ok to GET / e.g. for health check
|
||||||
if r.Method == http.MethodGet {
|
if r.Method == http.MethodGet {
|
||||||
|
ok = true
|
||||||
fmt.Fprintln(w, "webhook server is running")
|
fmt.Fprintln(w, "webhook server is running")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user