mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
update comment
This commit is contained in:
parent
748ccabebb
commit
1b1ab6bea0
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ impl Mime {
|
|||
/// * result could be `None` for some [status codes](https://geminiprotocol.net/docs/protocol-specification.gmi#status-codes) that does not expect MIME type in header
|
||||
/// * includes `Self::from_string` parser, it means that given buffer should contain some **header** (not filepath or any other type of strings)
|
||||
pub fn from_utf8(buffer: &[u8]) -> Result<Option<Self>, Error> {
|
||||
// Define max buffer length for this parser
|
||||
// Define max buffer length for this method
|
||||
const MAX_LEN: usize = 0x400; // 1024
|
||||
|
||||
// Calculate buffer length once
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue