Skip to content

Commit

Permalink
Restore media_type guessing in from_file_contents
Browse files Browse the repository at this point in the history
  • Loading branch information
EtaLoop committed Oct 11, 2024
1 parent f8ff765 commit f634de5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/store/re_types/src/archetypes/asset3d_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ impl Asset3D {
#[inline]
pub fn from_file_contents(contents: Vec<u8>, media_type: Option<impl Into<MediaType>>) -> Self {
let media_type = media_type.map(Into::into);
let media_type = MediaType::or_guess_from_data(media_type, &contents);
Self {
blob: contents.into(),
media_type,
Expand Down

0 comments on commit f634de5

Please sign in to comment.