Skip to content

Commit

Permalink
fix: disable decompression
Browse files Browse the repository at this point in the history
  • Loading branch information
WangYihang committed Feb 1, 2024
1 parent 267cea5 commit 73fa8b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/model/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@ func (t *Task) Do() {
t.NumTries++

// Create HTTP Client
transport := &http.Transport{
DisableCompression: true,
}
client := &http.Client{
CheckRedirect: func(req *http.Request, via []*http.Request) error {
return http.ErrUseLastResponse
},
Timeout: 8 * time.Second,
Timeout: 8 * time.Second,
Transport: transport,
}

// Create HTTP Request
Expand Down

0 comments on commit 73fa8b5

Please sign in to comment.