Skip to content

Commit

Permalink
feat: add decode type
Browse files Browse the repository at this point in the history
  • Loading branch information
fupengl committed Dec 6, 2023
1 parent f62de19 commit 20cecc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ func readBody(res *http.Response, maxBodyLength int) ([]byte, error) {
encoding := res.Header.Get(headerContentEncoding)
switch encoding {
case "gzip":
case "x-gzip":
case "compress":
case "x-compress":
var err error
reader, err = gzip.NewReader(res.Body)
if err != nil {
Expand Down

0 comments on commit 20cecc9

Please sign in to comment.