mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 08:18:03 +08:00
commands/http: Fixed client erroring on nil command output
This commit is contained in:
parent
d05661548c
commit
231960e726
@ -157,7 +157,7 @@ func getResponse(httpRes *http.Response, req cmds.Request) (cmds.Response, error
|
||||
} else {
|
||||
v := req.Command().Type
|
||||
err = dec.Decode(&v)
|
||||
if err != nil {
|
||||
if err != nil && err != io.EOF {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user