mirror of
https://github.com/rclone/rclone.git
synced 2025-04-16 16:18:52 +08:00
http: fix nilmap error
This commit is contained in:
parent
d26e627a51
commit
d96c791623
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user