diff --git a/post-processor/vagrant-cloud/client.go b/post-processor/vagrant-cloud/client.go index 0c475075d..a3df938e6 100644 --- a/post-processor/vagrant-cloud/client.go +++ b/post-processor/vagrant-cloud/client.go @@ -110,15 +110,7 @@ func (v VagrantCloudClient) Upload(path string, url string) (*http.Response, err defer file.Close() - body := &bytes.Buffer{} - - _, err = io.Copy(body, file) - - if err != nil { - return nil, fmt.Errorf("Error uploading file: %s", err) - } - - request, err := http.NewRequest("PUT", url, body) + request, err := http.NewRequest("PUT", url, file) if err != nil { return nil, fmt.Errorf("Error preparing upload request: %s", err)