Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
coreospackage
Commits
4ed30b55
Commit
4ed30b55
authored
7 years ago
by
Ajit Jagtap
Browse files
Options
Downloads
Plain Diff
Merge branch 'DownloadHelper_ReqTimeOut_SSS' into 'master'
DownloadHelper See merge request
!45
parents
563d2de7
e6977265
Branches
Branches containing commit
1 merge request
!45
DownloadHelper
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
downloadhelper/downloadHelper.go
+1
-0
downloadhelper/downloadHelper.go
with
1 addition
and
0 deletions
downloadhelper/downloadHelper.go
+
1
−
0
View file @
4ed30b55
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets