commands/http: Fixed client erroring on nil command output
Matt Bell committed
Nov 14, 2014 at 01:58 UTC
231960e726db244fbbbd25070a4cd79e5de08c3d
1 file changed
+1
-1
commands/http/client.go
+1
-1
@@ -157,7 +157,7 @@ func getResponse(httpRes *http.Response, req cmds.Request) (cmds.Response, error
157
} else {
158
v := req.Command().Type
159
err = dec.Decode(&v)
160
- if err != nil {
160
+ if err != nil && err != io.EOF {
161
return nil, err
162
}
163