ftp: Enable trailing headers, just like sftp (#20938)

This commit is contained in:
Jeeva Kandasamy 2025-02-15 16:02:09 +05:30 committed by GitHub
parent b8544266e5
commit 60446e7ac0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -382,9 +382,10 @@ func (driver *ftpDriver) getMinIOClient(ctx *ftp.Context) (*minio.Client, error)
}
return minio.New(driver.endpoint, &minio.Options{
Creds: credentials.NewStaticV4(ui.Credentials.AccessKey, ui.Credentials.SecretKey, ""),
Secure: globalIsTLS,
Transport: tr,
Creds: credentials.NewStaticV4(ui.Credentials.AccessKey, ui.Credentials.SecretKey, ""),
Secure: globalIsTLS,
Transport: tr,
TrailingHeaders: true,
})
}