提交 231960e7 作者: Matt Bell 提交者: Juan Batiz-Benet

commands/http: Fixed client erroring on nil command output

上级 d0566154
...@@ -157,7 +157,7 @@ func getResponse(httpRes *http.Response, req cmds.Request) (cmds.Response, error ...@@ -157,7 +157,7 @@ func getResponse(httpRes *http.Response, req cmds.Request) (cmds.Response, error
} else { } else {
v := req.Command().Type v := req.Command().Type
err = dec.Decode(&v) err = dec.Decode(&v)
if err != nil { if err != nil && err != io.EOF {
return nil, err return nil, err
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论