Fix send invalid json
This commit is contained in:
parent
4a81eff217
commit
281eda83c9
1 changed files with 0 additions and 5 deletions
|
@ -83,11 +83,6 @@ func (r *RpcServer) Resolve(ctx context.Context, rd io.Reader, w io.Writer, para
|
|||
for {
|
||||
req := new(RpcRequest)
|
||||
if err := dec.Decode(req); err != nil {
|
||||
if err == io.EOF {
|
||||
break
|
||||
}
|
||||
r.logger.Logf("Can't read body: %v", err)
|
||||
WriteError(ErrCodeParseError, enc)
|
||||
break
|
||||
}
|
||||
exec := func() {
|
||||
|
|
Loading…
Reference in a new issue