1
0
Fork 0

Merge pull request #370 from rqlite/no_cli_indent

CLI doesn't need to send indented JSON
master
Philip O'Toole 7 years ago committed by GitHub
commit e2c3b53b3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,7 @@
## 4.2.1 (unreleased) ## 4.2.1 (unreleased)
- [PR #367](https://github.com/rqlite/rqlite/pull/367): Remove superflous leading space at CLI prompt. - [PR #367](https://github.com/rqlite/rqlite/pull/367): Remove superflous leading space at CLI prompt.
- [PR #368](https://github.com/rqlite/rqlite/pull/368): CLI displays clear error message when not authorized. - [PR #368](https://github.com/rqlite/rqlite/pull/368): CLI displays clear error message when not authorized.
- [PR #370](https://github.com/rqlite/rqlite/pull/370): CLI does not need to indent JSON when making requests.
## 4.2.0 (October 19th 2017) ## 4.2.0 (October 19th 2017)
- [PR #354](https://github.com/rqlite/rqlite/pull/354): Vendor Raft. - [PR #354](https://github.com/rqlite/rqlite/pull/354): Vendor Raft.

@ -90,7 +90,7 @@ func main() {
} }
func makeJSONBody(line string) string { func makeJSONBody(line string) string {
data, err := json.MarshalIndent([]string{line}, "", " ") data, err := json.Marshal([]string{line})
if err != nil { if err != nil {
return "" return ""
} }

Loading…
Cancel
Save