Skip to content

Commit

Permalink
update ggemini api
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Jan 27, 2025
1 parent 1e5b723 commit 567dbe1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/browser/window/tab/item/client/driver/gemini.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(),
Expand Down

0 comments on commit 567dbe1

Please sign in to comment.