(s)ftp: Enable trailing headers for upload (#20914)

Since we always "connect" to minio, it is fine.
This commit is contained in:
Klaus Post 2025-02-10 08:35:49 -08:00 committed by GitHub
parent e30f1ad7bd
commit 4355ea3c3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

View File

@ -367,9 +367,10 @@ func (driver *ftpDriver) getMinIOClient(ctx *ftp.Context) (*minio.Client, error)
} }
return minio.New(driver.endpoint, &minio.Options{ return minio.New(driver.endpoint, &minio.Options{
Creds: mcreds, Creds: mcreds,
Secure: globalIsTLS, Secure: globalIsTLS,
Transport: tr, Transport: tr,
TrailingHeaders: true,
}) })
} }

View File

@ -127,9 +127,10 @@ func (f *sftpDriver) getMinIOClient() (*minio.Client, error) {
tr = forwardForTransport{tr: tr, fwd: f.remoteIP} tr = forwardForTransport{tr: tr, fwd: f.remoteIP}
} }
return minio.New(f.endpoint, &minio.Options{ return minio.New(f.endpoint, &minio.Options{
Creds: mcreds, TrailingHeaders: true,
Secure: globalIsTLS, Creds: mcreds,
Transport: tr, Secure: globalIsTLS,
Transport: tr,
}) })
} }