diff options
| author | Fuwn <[email protected]> | 2022-04-20 21:45:11 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-04-20 21:45:11 +0000 |
| commit | 4725b3edf3e4b1ef181ed435a7d03d9fbe1dead9 (patch) | |
| tree | 68bd4c12bd0c95c337700d64f650ec9daf0057df | |
| parent | docs(cargo): bump version (diff) | |
| download | windmark-4725b3edf3e4b1ef181ed435a7d03d9fbe1dead9.tar.xz windmark-4725b3edf3e4b1ef181ed435a7d03d9fbe1dead9.zip | |
fix(handle): response spacing
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -490,14 +490,14 @@ impl Router { self.charset, self.language ), #[cfg(feature = "auto-deduce-mime")] - 21 => tree_magic::from_u8(&*content.as_bytes()), + 21 => format!(" {}", tree_magic::from_u8(&*content.as_bytes())), #[cfg(not(feature = "auto-deduce-mime"))] 21 => response_mime_type, - _ => (&*content).to_string(), + _ => format!(" {}", content), }, match response_status { 20 => format!("{}{}\n{}", header, content, footer), - 21 => (&*content).to_string(), + 21 => format!(" {}", content), _ => "".to_string(), } ) |