~egtann/sjs

881400396cb1b9c61cb8fe16360bb7810431c6d7 — Evan Tann 1 year, 9 months ago 8b4fdaa
wip
1 files changed, 3 insertions(+), 0 deletions(-)

M http/service.go
M http/service.go => http/service.go +3 -0
@@ 96,6 96,9 @@ func (s *Service) addWorker(w http.ResponseWriter, r *http.Request) {
		http.Error(w, err.Error(), http.StatusBadRequest)
		return
	}
	role := r.Header.Get("X-Role")
	host := r.Header.Get("X-Host")
	s.log.Printf("good heartbeat (%s@%s)", role, host)
	w.WriteHeader(http.StatusOK)
}