mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 01:25:32 +00:00
make mime type optional
This commit is contained in:
parent
5c0b8bf386
commit
8bfea4ffcf
2 changed files with 20 additions and 14 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue