🏗️ Elegant & Highly Performant Async Gemini Server Framework for the Modern Age
async framework gemini-protocol protocol gemini rust
0
fork

Configure Feed

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

fix(router): Compliant empty path handling

Fuwn b1aef25d 56fc17cd

+5 -5
+5 -5
src/router.rs
··· 413 413 } 414 414 } 415 415 416 + if url.path().is_empty() { 417 + url.set_path("/"); 418 + } 419 + 416 420 let fixed_path = if self.fix_path { 417 421 self 418 422 .routes 419 - .fix_path(if url.path().is_empty() { 420 - "/" 421 - } else { 422 - url.path() 423 - }) 423 + .fix_path(url.path()) 424 424 .unwrap_or_else(|| url.path().to_string()) 425 425 } else { 426 426 url.path().to_string()