Skip to content

Commit 267d326

Browse files
authored
Disable compression in HTTP client
Signed-off-by: Osmany Montero <osmontero@icloud.com>
1 parent adb3a70 commit 267d326

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

agent/utils/download.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func DownloadFile(url string, headers map[string]string, fileName string, path s
2121
client := &http.Client{}
2222
client.Transport = &http.Transport{
2323
TLSClientConfig: &tls.Config{InsecureSkipVerify: skipTlsVerification},
24+
DisableCompression: true,
2425
}
2526

2627
resp, err := client.Do(req)

0 commit comments

Comments
 (0)