mirror of
https://github.com/octoleo/restic.git
synced 2024-11-15 17:47:21 +00:00
14 lines
207 B
Go
14 lines
207 B
Go
// +build go1.7
|
|
|
|
package management
|
|
|
|
import (
|
|
"io/ioutil"
|
|
"net/http"
|
|
)
|
|
|
|
func getResponseBody(response *http.Response) ([]byte, error) {
|
|
defer response.Body.Close()
|
|
return ioutil.ReadAll(response.Body)
|
|
}
|