fix example

This commit is contained in:
yggverse 2025-01-28 11:58:35 +02:00
parent eee87d66b4
commit cdac038135

View file

@ -63,7 +63,7 @@ fn main() -> ExitCode {
// route by status code
match response.meta.status {
// code 20, handle `GIOStream` by content type
Status::Success => match response.meta.mime.unwrap().value.as_str() {
Status::Success => match response.meta.mime.unwrap().as_str() {
// gemtext, see ggemtext crate to parse
"text/gemini" => todo!(),
// other content types