handle ?pretty similarly to ?stale, ?consistent etc.
This commit is contained in:
parent
92e9e138b9
commit
8beb1bb848
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue