Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ var (
useSsl = flag.String("ssl", "", "SSL flag")
syncRet = flag.String("sync_exp", "", "sync expected return code in format code:string")
hasDownloadFile = flag.Bool("d", false, "set to true to take advantage of downloadFile API")
timeoutSeconds = flag.Int("t", 10, "Upload timeout")
)

type Item struct {
Expand All @@ -53,7 +54,7 @@ func main() {
}

var httpClient = &http.Client{
Timeout: time.Second * 10,
Timeout: time.Second * time.Duration(*timeoutSeconds),
}

httpheader := "http://"
Expand Down