0
0
Fork 0

added json struct tag to http doc count response

This commit is contained in:
Marty Schoch 2014-09-05 12:16:26 -04:00
parent b1dd4215fc
commit f87a22e24c
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func (h *DocCountHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
docCount := index.DocCount()
rv := struct {
Status string `json:"status"`
Count uint64
Count uint64 `json:"count"`
}{
Status: "ok",
Count: docCount,