Commit b898d652 authored by ale's avatar ale

Don't return an extra newline

parent 888a43c8
Pipeline #808 passed with stages
in 48 seconds
......@@ -74,6 +74,7 @@ func (p *DictProxyServer) handleLookup(ctx context.Context, lw unix.LineResponse
if err := json.NewEncoder(&buf).Encode(obj); err != nil {
return err
}
buf.Write([]byte{'\n'})
// json Encode will already add a newline.
//buf.Write([]byte{'\n'})
return lw.WriteLine(buf.Bytes())
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment