http: fix nilmap error

This commit is contained in:
hiddenmarten 2025-01-14 12:36:04 +01:00
parent d26e627a51
commit d96c791623

View File

@ -642,6 +642,7 @@ func (o *Object) decodeMetadata(ctx context.Context, res *http.Response) error {
// Parse Content-Disposition header
contentDisposition := res.Header.Get("Content-Disposition")
if contentDisposition != "" {
o.meta = make(map[string]string)
o.contentDisposition = &contentDisposition
o.meta["content-disposition"] = contentDisposition
}