Open
Description
Bug description
The signature of gio::content_type_guess
has the type of data
as &[u8]
. The same documentation, and also the gio documentation mention that data
can be None
. So a better signature would set data
to Option<&[u8]>
or similar. Note that the current signature can lead to wrong results if one wants the content type to be guessed only based on the filetype, this is not possible based on the current signature.
This change would be breaking.