🏗️ Elegant & Highly Performant Async Gemini Server Framework for the Modern Age
async framework gemini-protocol protocol gemini rust
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(handle): response spacing

Fuwn 4725b3ed fb826fbf

+3 -3
+3 -3
src/lib.rs
··· 490 490 self.charset, self.language 491 491 ), 492 492 #[cfg(feature = "auto-deduce-mime")] 493 - 21 => tree_magic::from_u8(&*content.as_bytes()), 493 + 21 => format!(" {}", tree_magic::from_u8(&*content.as_bytes())), 494 494 #[cfg(not(feature = "auto-deduce-mime"))] 495 495 21 => response_mime_type, 496 - _ => (&*content).to_string(), 496 + _ => format!(" {}", content), 497 497 }, 498 498 match response_status { 499 499 20 => format!("{}{}\n{}", header, content, footer), 500 - 21 => (&*content).to_string(), 500 + 21 => format!(" {}", content), 501 501 _ => "".to_string(), 502 502 } 503 503 )