diff --git a/commands/http/client.go b/commands/http/client.go index 09cc48639c9..ddf4e5d8068 100644 --- a/commands/http/client.go +++ b/commands/http/client.go @@ -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 }