2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-15 01:34:06 +00:00
restic/vendor/github.com/Azure/azure-sdk-for-go/management/util.go

14 lines
207 B
Go
Raw Normal View History

2017-09-13 12:09:48 +00:00
// +build go1.7
2017-08-05 18:30:20 +00:00
package management
import (
"io/ioutil"
"net/http"
)
func getResponseBody(response *http.Response) ([]byte, error) {
defer response.Body.Close()
return ioutil.ReadAll(response.Body)
}