1 // +build go1.7 2 3 package management 4 5 // Copyright (c) Microsoft Corporation. All rights reserved. 6 // Licensed under the MIT License. See License.txt in the project root for license information. 7 8 import ( 9 "io/ioutil" 10 "net/http" 11 ) 12 13 func getResponseBody(response *http.Response) ([]byte, error) { 14 defer response.Body.Close() 15 return ioutil.ReadAll(response.Body) 16 } 17