From 567dbe18e626e724d551adc937d9de233373b23c Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 27 Jan 2025 20:58:11 +0200 Subject: [PATCH] update `ggemini` api --- src/app/browser/window/tab/item/client/driver/gemini.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/browser/window/tab/item/client/driver/gemini.rs b/src/app/browser/window/tab/item/client/driver/gemini.rs index ef3a90c2..bc093cc8 100644 --- a/src/app/browser/window/tab/item/client/driver/gemini.rs +++ b/src/app/browser/window/tab/item/client/driver/gemini.rs @@ -74,7 +74,7 @@ impl Gemini { match uri.scheme().as_str() { "gemini" => handle( - Request::Gemini(Gemini { uri }), + Request::Gemini { uri }, self.client.clone(), self.subject.clone(), self.redirects.clone(), @@ -88,13 +88,13 @@ impl Gemini { let redirects = self.redirects.clone(); move |data, _label| { handle( - Request::Titan(Titan { + Request::Titan { uri: uri.clone(), data: Bytes::from(data), // * some servers may reject the request without content type mime: Some("text/plain".to_string()), token: None, // @TODO - }), + }, client.clone(), subject.clone(), redirects.clone(),