aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-12-21 21:32:10 +0800
committerGitHub <noreply@github.com>2017-12-21 21:32:10 +0800
commit91c3362315ca8161c4b927c8f41a9165ae75f3ac (patch)
treebf558fa5585ae7a5f27960003c6a06beb47c12fe /cmd
parent14852810b4bd53bf6e3b04e9b4017a1ee87a4003 (diff)
parent68651a2329057aa203f60af85932958e6c32ebe4 (diff)
downloaddexon-91c3362315ca8161c4b927c8f41a9165ae75f3ac.tar
dexon-91c3362315ca8161c4b927c8f41a9165ae75f3ac.tar.gz
dexon-91c3362315ca8161c4b927c8f41a9165ae75f3ac.tar.bz2
dexon-91c3362315ca8161c4b927c8f41a9165ae75f3ac.tar.lz
dexon-91c3362315ca8161c4b927c8f41a9165ae75f3ac.tar.xz
dexon-91c3362315ca8161c4b927c8f41a9165ae75f3ac.tar.zst
dexon-91c3362315ca8161c4b927c8f41a9165ae75f3ac.zip
Merge pull request #15729 from karalabe/faucet-fix-twitter
cmd/faucet: fix removal of Twitter zlib compression
Diffstat (limited to 'cmd')
-rw-r--r--cmd/faucet/faucet.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go
index 5f16f2978..75ec124c1 100644
--- a/cmd/faucet/faucet.go
+++ b/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
}