Commit 4ed30b55 authored by Ajit Jagtap's avatar Ajit Jagtap
Browse files

Merge branch 'DownloadHelper_ReqTimeOut_SSS' into 'master'

DownloadHelper

See merge request !45
parents 563d2de7 e6977265
Branches
1 merge request!45DownloadHelper
Showing with 1 addition and 0 deletions
......@@ -57,6 +57,7 @@ func DownloadFile(sourcePath, destinationPath, jwtToken string, retryCnt int) (b
}
}
client := grab.NewClient()
client.HTTPClient.Timeout = time.Second * 10
req, _ := grab.NewRequest(destinationPath, sourcePath)
if jwtToken != "NA" {
req.HTTPRequest.Header.Add("Authorization", jwtToken)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment