Skip to content

Commit 91c3362

Browse files
authored
Merge pull request ethereum#15729 from karalabe/faucet-fix-twitter
cmd/faucet: fix removal of Twitter zlib compression
2 parents 1485281 + 68651a2 commit 91c3362

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cmd/faucet/faucet.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ package main
2121

2222
import (
2323
"bytes"
24-
"compress/zlib"
2524
"context"
2625
"encoding/json"
2726
"errors"
@@ -698,11 +697,7 @@ func authTwitter(url string) (string, string, common.Address, error) {
698697
}
699698
defer res.Body.Close()
700699

701-
reader, err := zlib.NewReader(res.Body)
702-
if err != nil {
703-
return "", "", common.Address{}, err
704-
}
705-
body, err := ioutil.ReadAll(reader)
700+
body, err := ioutil.ReadAll(res.Body)
706701
if err != nil {
707702
return "", "", common.Address{}, err
708703
}

0 commit comments

Comments
 (0)