http: update remote implementation, take remote from contentDispositionFilename if it is existing

This commit is contained in:
hiddenmarten 2025-04-12 19:01:56 +02:00
parent 26c6702913
commit 1d3650feff

View File

@ -608,6 +608,9 @@ func (o *Object) String() string {
// Remote the name of the remote HTTP file, relative to the fs root
func (o *Object) Remote() string {
if o.contentDispositionFilename != nil {
return *o.contentDispositionFilename
}
return o.remote
}