mirror of https://github.com/ledisdb/ledisdb.git
add a extra bool value when returning status
This commit is contained in:
parent
a88c8c46d8
commit
2166c6ff19
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue