2
2
mirror of https://github.com/octoleo/restic.git synced 2025-02-10 07:38:36 +00:00

12 lines
190 B
Go
Raw Normal View History

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