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:
Max N. Boyarov 2021-11-09 02:07:07 +02:00 committed by GitHub
parent 2191617eb5
commit 88b8871830
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ func (autoscaler *HorizontalRunnerAutoscalerGitHubWebhook) Handle(w http.Respons
// respond ok to GET / e.g. for health check
if r.Method == http.MethodGet {
ok = true
fmt.Fprintln(w, "webhook server is running")
return
}