Skip to content

Commit

Permalink
feat(cargo): bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuwn committed Apr 2, 2024
1 parent d0b7dd9 commit ee822fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "september"
version = "0.2.13"
version = "0.2.14"
authors = ["Fuwn <[email protected]>"]
edition = "2021"
description = "A simple and efficient Gemini-to-HTTP proxy."
Expand Down
8 changes: 7 additions & 1 deletion src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ fn link_from_host_href(url: &Url, href: &str) -> Option<String> {
Some(format!(
"gemini://{}{}{}",
url.domain()?,
{ if href.starts_with('/') { "" } else { "/" } },
{
if href.starts_with('/') {
""
} else {
"/"
}
},
href
))
}
Expand Down

0 comments on commit ee822fb

Please sign in to comment.