mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
CopyObject:Set Content-Type to application/octet-stream if it is not set (#6958)
This commit is contained in:
parent
d2f8f8c7ee
commit
7881791a91
@ -134,6 +134,11 @@ func extractMetadata(ctx context.Context, r *http.Request) (metadata map[string]
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set content-type to default value if it is not set.
|
||||||
|
if _, ok := metadata["content-type"]; !ok {
|
||||||
|
metadata["content-type"] = "application/octet-stream"
|
||||||
|
}
|
||||||
|
|
||||||
// Success.
|
// Success.
|
||||||
return metadata, nil
|
return metadata, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user