commands/http: Fixed client erroring on nil command output

This commit is contained in:
Matt Bell 2014-11-14 01:58:28 -08:00 committed by Juan Batiz-Benet
parent d05661548c
commit 231960e726

View File

@ -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
}