diff --git a/server/client_http.go b/server/client_http.go index a2ae729..f31c4df 100644 --- a/server/client_http.go +++ b/server/client_http.go @@ -147,7 +147,11 @@ func (w *httpWriter) writeError(err error) { } func (w *httpWriter) writeStatus(status string) { - w.genericWrite(status) + var success bool + if status == OK || status == PONG { + success = true + } + w.genericWrite([]interface{}{success, status}) } func (w *httpWriter) writeInteger(n int64) {