mirror of
https://github.com/octoleo/restic.git
synced 2024-11-19 03:25:19 +00:00
12 lines
190 B
Go
12 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)
|
||
|
}
|