// +build go1.7 package management // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. import ( "io/ioutil" "net/http" ) func getResponseBody(response *http.Response) ([]byte, error) { defer response.Body.Close() return ioutil.ReadAll(response.Body) }