use ioutil.ReadlAll instead of custom function to read the response.Body