Unverified Commit 91c33623 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub

Merge pull request #15729 from karalabe/faucet-fix-twitter

cmd/faucet: fix removal of Twitter zlib compression
parents 14852810 68651a23
...@@ -21,7 +21,6 @@ package main ...@@ -21,7 +21,6 @@ package main
import ( import (
"bytes" "bytes"
"compress/zlib"
"context" "context"
"encoding/json" "encoding/json"
"errors" "errors"
...@@ -698,11 +697,7 @@ func authTwitter(url string) (string, string, common.Address, error) { ...@@ -698,11 +697,7 @@ func authTwitter(url string) (string, string, common.Address, error) {
} }
defer res.Body.Close() defer res.Body.Close()
reader, err := zlib.NewReader(res.Body) body, err := ioutil.ReadAll(res.Body)
if err != nil {
return "", "", common.Address{}, err
}
body, err := ioutil.ReadAll(reader)
if err != nil { if err != nil {
return "", "", common.Address{}, err return "", "", common.Address{}, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment