make mime type optional

This commit is contained in:
yggverse 2024-11-01 04:32:53 +02:00
parent 5c0b8bf386
commit 8bfea4ffcf
2 changed files with 20 additions and 14 deletions

View file

@ -23,7 +23,7 @@ pub const MAX_LEN: usize = 0x400; // 1024
pub struct Meta {
data: Data,
mime: Mime,
mime: Option<Mime>,
status: Status,
// @TODO
// charset: Charset,
@ -129,7 +129,7 @@ impl Meta {
&self.data
}
pub fn mime(&self) -> &Mime {
pub fn mime(&self) -> &Option<Mime> {
&self.mime
}
}