From 65aeb076a6bb7591753a62c0088724eeb2885a3a Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Thu, 5 Nov 2020 18:50:15 +0530 Subject: [PATCH] fix missing downloads for redirects --- service/fileService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/fileService.go b/service/fileService.go index 77d7061..f74dc18 100644 --- a/service/fileService.go +++ b/service/fileService.go @@ -164,7 +164,7 @@ func addFileToTarWriter(filePath string, tarWriter *tar.Writer) error { func httpClient() *http.Client { client := http.Client{ CheckRedirect: func(r *http.Request, via []*http.Request) error { - r.URL.Opaque = r.URL.Path + // r.URL.Opaque = r.URL.Path return nil }, }