♻️ Simple & Efficient Gemini-to-HTTP Proxy fuwn.net
proxy gemini-protocol protocol gemini http rust
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

deps(germ): bump to 0.4.0

Fuwn 025d4807 d3b23dd6

+6 -4
+1 -1
Cargo.toml
··· 21 21 22 22 [dependencies] 23 23 # Gemini 24 - germ = { version = "0.3.10", features = ["ast", "meta"] } 24 + germ = { version = "0.4.0", features = ["ast", "meta"] } 25 25 26 26 # HTTP 27 27 actix-web = "4.0.1"
+5 -3
src/response.rs
··· 68 68 }; 69 69 // Make a request to get Gemini content and time it. 70 70 let mut timer = Instant::now(); 71 - let mut response = match germ::request::request(&url) { 71 + let mut response = match germ::request::request(&url).await { 72 72 Ok(response) => response, 73 73 Err(e) => { 74 74 return Ok(HttpResponse::Ok().body(e.to_string())); ··· 91 91 .body(format!("{e}")), 92 92 ); 93 93 } 94 - }) { 94 + }) 95 + .await 96 + { 95 97 Ok(response) => response, 96 98 Err(e) => { 97 99 return Ok(HttpResponse::Ok().body(e.to_string())); ··· 234 236 235 237 html_context.push_str( 236 238 &crate::html::from_gemini( 237 - &match germ::request::request(&redirect_url) { 239 + &match germ::request::request(&redirect_url).await { 238 240 Ok(response) => response, 239 241 Err(e) => { 240 242 return Ok(HttpResponse::Ok().body(e.to_string()));