http: add comment for choosing name codeblock

This commit is contained in:
hiddenmarten 2025-01-14 15:48:02 +01:00
parent 5865f3aaeb
commit 69633ec2e8

View File

@ -205,6 +205,7 @@ func (lj *listJSON) entry(ctx context.Context, entry fs.DirEntry) (*ListJSONItem
}
}
// Extract the name from the metadata if possible
var name string
if meta != nil && meta["content-disposition"] != "" {
name, err = parseFilenameFromContentDisposition(meta["content-disposition"])