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

This commit is contained in:
Thordur Bjornsson 2015-01-01 15:33:33 +01:00
parent e9615c50e6
commit 1435818792

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