~int80h/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

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

Details
Message ID
<20201125094909.E6D5E4C151F@tilde.team>
DKIM signature
missing
Download raw message
Patch: +1 -1
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()));
                files.push(format!("=> {} {}\r\n", ep, p.display()));
            }
        }
    }
-- 
2.25.1
Reply to thread Export thread (mbox)