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 }