mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
handle ?pretty similarly to ?stale, ?consistent etc.
This commit is contained in:
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…
x
Reference in New Issue
Block a user