From 378b854479c84f41805b615f28c458b4d15ea061 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 2 Jan 2013 09:20:35 -0800 Subject: [PATCH] camget: use bytes.NewReader instead of bytes.NewBuffer Change-Id: If51c47f356460b32355836e67a1ce443c071b65c --- cmd/camget/camget.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/camget/camget.go b/cmd/camget/camget.go index 0aca02e5f..23e2b6e37 100644 --- a/cmd/camget/camget.go +++ b/cmd/camget/camget.go @@ -173,7 +173,7 @@ func smartFetch(cl *client.Client, targ string, br *blobref.BlobRef) error { } defer f.Close() body, _ := sniffer.Body() - r := io.MultiReader(bytes.NewBuffer(body), rc) + r := io.MultiReader(bytes.NewReader(body), rc) _, err = io.Copy(f, r) return err }