mirror of
https://github.com/minio/minio.git
synced 2025-02-14 15:12:29 -05:00
(s)ftp: Enable trailing headers for upload (#20914)
Since we always "connect" to minio, it is fine.
This commit is contained in:
parent
e30f1ad7bd
commit
4355ea3c3f
@ -367,9 +367,10 @@ func (driver *ftpDriver) getMinIOClient(ctx *ftp.Context) (*minio.Client, error)
|
||||
}
|
||||
|
||||
return minio.New(driver.endpoint, &minio.Options{
|
||||
Creds: mcreds,
|
||||
Secure: globalIsTLS,
|
||||
Transport: tr,
|
||||
Creds: mcreds,
|
||||
Secure: globalIsTLS,
|
||||
Transport: tr,
|
||||
TrailingHeaders: true,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -127,9 +127,10 @@ func (f *sftpDriver) getMinIOClient() (*minio.Client, error) {
|
||||
tr = forwardForTransport{tr: tr, fwd: f.remoteIP}
|
||||
}
|
||||
return minio.New(f.endpoint, &minio.Options{
|
||||
Creds: mcreds,
|
||||
Secure: globalIsTLS,
|
||||
Transport: tr,
|
||||
TrailingHeaders: true,
|
||||
Creds: mcreds,
|
||||
Secure: globalIsTLS,
|
||||
Transport: tr,
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user