1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 15:42:21 +08:00

Append newlines to ipfs id and ipfs dns output.

This fixes #1083, #2000.

N.B. The JSON package developers see no trailing newline as a feature;
it allows marshalled JSON to be embedded inside more JSON.[0]

--
[0] https://golang.org/pkg/encoding/json/

License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
This commit is contained in:
Thomas Gardner
2016-01-24 10:34:13 +10:00
parent a5c4c5d17c
commit 7b716986f6
2 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,7 @@ The resolver will give:
if !ok {
return nil, util.ErrCast()
}
return strings.NewReader(output.Path.String()), nil
return strings.NewReader(output.Path.String() + "\n"), nil
},
},
Type: ResolvedPath{},