mirror of
https://github.com/restic/restic.git
synced 2025-03-23 00:00:04 +01:00
11 lines
190 B
Go
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)
|
|
}
|