We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b78a1 commit 0d5bb36Copy full SHA for 0d5bb36
pkg/querier/tripperware/query.go
@@ -5,7 +5,7 @@ import (
5
"compress/gzip"
6
"context"
7
"encoding/json"
8
- "io/ioutil"
+ "io"
9
"net/http"
10
"sort"
11
"strconv"
@@ -166,14 +166,15 @@ func BodyBuffer(res *http.Response) ([]byte, error) {
166
}
167
168
169
+ // if the response is gziped, lets unzip it here
170
if strings.EqualFold(res.Header.Get("Content-Encoding"), "gzip") {
171
gReader, err := gzip.NewReader(buf)
172
173
if err != nil {
174
return nil, err
175
176
- return ioutil.ReadAll(gReader)
177
+ return io.ReadAll(gReader)
178
179
180
return buf.Bytes(), nil
0 commit comments