add a extra bool value when returning status

This commit is contained in:
wenyekui 2014-08-01 11:59:16 +08:00
parent a88c8c46d8
commit 2166c6ff19
1 changed files with 5 additions and 1 deletions

View File

@ -147,7 +147,11 @@ func (w *httpWriter) writeError(err error) {
} }
func (w *httpWriter) writeStatus(status string) { 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) { func (w *httpWriter) writeInteger(n int64) {