http: add comment for choosing name codeblock

This commit is contained in:
hiddenmarten 2025-01-14 15:48:02 +01:00
parent 18225c01a8
commit 7bde8822fd

View File

@ -204,6 +204,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"])