mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
committed by
Nick Craig-Wood
parent
4b1cb1be43
commit
0ab2693da6
@@ -180,6 +180,13 @@ func NewTransportCustom(ci *fs.ConfigInfo, customize func(*http.Transport)) http
|
||||
t.IdleConnTimeout = 60 * time.Second
|
||||
t.ExpectContinueTimeout = ci.ExpectContinueTimeout
|
||||
|
||||
if ci.Dump&(fs.DumpHeaders|fs.DumpBodies|fs.DumpAuth|fs.DumpRequests|fs.DumpResponses) != 0 {
|
||||
fs.Debugf(nil, "You have specified to dump information. Please be noted that the "+
|
||||
"Accept-Encoding as shown may not be correct in the request and the response may not show "+
|
||||
"Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case"+
|
||||
" the body of the request will be gunzipped before showing it.")
|
||||
}
|
||||
|
||||
// customize the transport if required
|
||||
if customize != nil {
|
||||
customize(t)
|
||||
|
||||
Reference in New Issue
Block a user