Commit e6977265 authored by Sandeep S. Shewalkar's avatar Sandeep S. Shewalkar
Browse files

DownloadHelper

RequestTimeout added for request
parent 563d2de7
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