From 231960e726db244fbbbd25070a4cd79e5de08c3d 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 09cc48639..ddf4e5d80 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 }