mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
CopyObject:Set Content-Type to application/octet-stream if it is not set (#6958)
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user