mirror of
https://github.com/rclone/rclone.git
synced 2025-04-24 13:14:13 +08:00
http: fix nilmap error
This commit is contained in:
parent
ac6a081010
commit
96e417c92c
@ -635,6 +635,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