From d42b38699bbce191357afa77987dc62a18b000ee Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 8 Oct 2016 10:12:19 +0100 Subject: [PATCH] Make ResponseHeaderTimeout be `--timeout` not `--contimeout` fixes #766 This was causing a problem with Amazon Drive which often pauses for a long time after uploads before returning the response. --- fs/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/http.go b/fs/http.go index f49fefd65..c8f5f20c8 100644 --- a/fs/http.go +++ b/fs/http.go @@ -101,7 +101,7 @@ func (ci *ConfigInfo) Transport() http.RoundTripper { t.Proxy = http.ProxyFromEnvironment t.MaxIdleConnsPerHost = 4 * (ci.Checkers + ci.Transfers + 1) t.TLSHandshakeTimeout = ci.ConnectTimeout - t.ResponseHeaderTimeout = ci.ConnectTimeout + t.ResponseHeaderTimeout = ci.Timeout t.TLSClientConfig = &tls.Config{InsecureSkipVerify: ci.InsecureSkipVerify} t.DisableCompression = *noGzip // Set in http_old.go initTransport