handle ?pretty similarly to ?stale, ?consistent etc.

This commit is contained in:
Thordur Bjornsson 2015-01-01 15:33:33 +01:00
parent 92e9e138b9
commit 8beb1bb848
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ func (s *HTTPServer) wrap(handler func(resp http.ResponseWriter, req *http.Reque
}
prettyPrint := false
if req.URL.Query().Get("pretty") != "" {
if _, ok := req.URL.Query()["pretty"]; ok {
prettyPrint = true
}
// Write out the JSON object