Skip to content

Commit

Permalink
commands/http: Fixed client erroring on nil command output
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Nov 14, 2014
1 parent 38e2e45 commit b9163cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b9163cc

Please sign in to comment.