Remove unnessary early header write
This commit is contained in:

committed by
Felix Auringer

parent
2d71584464
commit
e14e9c9229
@@ -7,7 +7,6 @@ import (
|
||||
// Health tries to respond that the server is alive.
|
||||
// If it is not, the response won't reach the client.
|
||||
func Health(writer http.ResponseWriter, _ *http.Request) {
|
||||
writer.WriteHeader(http.StatusOK)
|
||||
writeJson(
|
||||
writer,
|
||||
Message{"I'm alive!"},
|
||||
|
Reference in New Issue
Block a user