Browse Source

Stop using "jar" for the body

pull/8/head
Daniel Martí 11 years ago
parent
commit
100f2b7bb4
  1. 4
      cmd/fdroidcl/http.go

4
cmd/fdroidcl/http.go

@ -40,11 +40,11 @@ func downloadEtag(url, path string) error {
if resp.StatusCode == http.StatusNotModified {
return errNotModified
}
jar, err := ioutil.ReadAll(resp.Body)
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
return err
}
err = ioutil.WriteFile(path, jar, 0644)
err = ioutil.WriteFile(path, body, 0644)
etag := respEtag(resp)
err2 := ioutil.WriteFile(etagPath, []byte(etag), 0644)
if err != nil {

Loading…
Cancel
Save