cmd/faucet: fix removal of Twitter zlib compression

release/1.8
Péter Szilágyi 7 years ago
parent 5258785c81
commit 68651a2329
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D
  1. 7
      cmd/faucet/faucet.go

@ -21,7 +21,6 @@ package main
import (
"bytes"
"compress/zlib"
"context"
"encoding/json"
"errors"
@ -698,11 +697,7 @@ func authTwitter(url string) (string, string, common.Address, error) {
}
defer res.Body.Close()
reader, err := zlib.NewReader(res.Body)
if err != nil {
return "", "", common.Address{}, err
}
body, err := ioutil.ReadAll(reader)
body, err := ioutil.ReadAll(res.Body)
if err != nil {
return "", "", common.Address{}, err
}

Loading…
Cancel
Save