~int80h/public-inbox

gemserv: Don't append a slash to file paths v1 PROPOSED

khuxkm fbexl: 1
 Don't append a slash to file paths

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~int80h/public-inbox/patches/15295/mbox | git am -3
Learn more about email & git

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

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