~khuxkm

~khuxkm/test

Last active 6 years ago
View more

Recent activity

[PATCH gemserv] Don't append a slash to file paths 4 years ago

From khuxkm fbexl to ~int80h/public-inbox

this should fix file paths in directory listings not working
---
 src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index a32ebf2..3488217 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -99,7 +99,7 @@ async fn get_content(path: PathBuf, u: url::Url) -> Result<String, io::Error> {
            if m.is_dir() {
                dirs.push(format!("=> {}/ {}/\r\n", ep, p.display()));
            } else {
                files.push(format!("=> {}/ {}\r\n", ep, p.display()));
[message trimmed]