From 54fabd241b01bd2a00e2abcd27d5e65a312357d4 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 14 Dec 2024 06:28:48 +0200 Subject: [PATCH] update example with new api version --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2998777..f6561e7 100644 --- a/README.md +++ b/README.md @@ -43,9 +43,10 @@ fn main() -> ExitCode { // route by status code match response.meta.status { // is code 20, handle `GIOStream` by content type - Status::Success => match response.meta.mime { - // is gemtext, see also ggemtext crate! - Some(Mime::TextGemini) => todo!(), + Status::Success => match response.meta.mime.unwrap().value.as_str() { + // is gemtext, see ggemtext crate to parse + "text/gemini" => todo!(), + // other types _ => todo!(), }, _ => todo!(),