restic/vendor/github.com/Azure/azure-sdk-for-go/management/util.go
2017-08-06 21:47:04 +02:00

11 lines
190 B
Go

package management
import (
"io/ioutil"
"net/http"
)
func getResponseBody(response *http.Response) ([]byte, error) {
defer response.Body.Close()
return ioutil.ReadAll(response.Body)
}