From b9163ccfb4e6269953b2f42c9e0aae55f4a9595a Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Fri, 14 Nov 2014 01:58:28 -0800 Subject: [PATCH] commands/http: Fixed client erroring on nil command output --- commands/http/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }