Commit 231960e7 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

commands/http: Fixed client erroring on nil command output

parent d0566154
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment