mirror of https://github.com/status-im/consul.git
* adding new line only in case of pretty in url not in dev mode * change log added
This commit is contained in:
parent
38c356c39b
commit
417ae9fc39
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
dev-mode: Fix dev mode has new line in responses. Now new line is added only when url has pretty query parameter.
|
||||
```
|
|
@ -616,7 +616,9 @@ func (s *HTTPHandlers) marshalJSON(req *http.Request, obj interface{}) ([]byte,
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
buf = append(buf, "\n"...)
|
||||
if ok {
|
||||
buf = append(buf, "\n"...)
|
||||
}
|
||||
return buf, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue