mirror of https://github.com/hashicorp/consul
handle ?pretty similarly to ?stale, ?consistent etc.
parent
e9615c50e6
commit
1435818792
|
@ -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