Skip to content
Snippets Groups Projects
Commit b898d652 authored by ale's avatar ale
Browse files

Don't return an extra newline

parent 888a43c8
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,7 @@ func (p *DictProxyServer) handleLookup(ctx context.Context, lw unix.LineResponse ...@@ -74,6 +74,7 @@ func (p *DictProxyServer) handleLookup(ctx context.Context, lw unix.LineResponse
if err := json.NewEncoder(&buf).Encode(obj); err != nil { if err := json.NewEncoder(&buf).Encode(obj); err != nil {
return err return err
} }
buf.Write([]byte{'\n'}) // json Encode will already add a newline.
//buf.Write([]byte{'\n'})
return lw.WriteLine(buf.Bytes()) return lw.WriteLine(buf.Bytes())
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment